Changeset 5d8c765ae252c93cbdc0bf6c4fab572003019762
- Timestamp:
- 28/06/04 16:03:28
(4 years ago)
- Author:
- Gildas Bazin <gbazin@videolan.org>
- git-committer:
- Gildas Bazin <gbazin@videolan.org> 1088431408 +0000
- git-parent:
[d469b20d86cc5a36d75e5f585b45b55a2472d475]
- git-author:
- Gildas Bazin <gbazin@videolan.org> 1088431408 +0000
- Message:
* src/input/control.c: fixed INPUT_ADD_INFO/INPUT_GET_INFO
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r2aebce7 |
r5d8c765 |
|
| 139 | 139 | { |
|---|
| 140 | 140 | if( !strcmp( p_input->input.p_item->pp_categories[i]->psz_name, |
|---|
| 141 | | psz_cat ) ) |
|---|
| 142 | | return VLC_EGENERIC; |
|---|
| | 141 | psz_cat ) ) break; |
|---|
| 143 | 142 | } |
|---|
| 144 | 143 | |
|---|
| … | … | |
| 147 | 146 | p_cat = malloc( sizeof( info_category_t ) ); |
|---|
| 148 | 147 | if( !p_cat ) |
|---|
| | 148 | { |
|---|
| | 149 | vlc_mutex_lock( &p_input->input.p_item->lock ); |
|---|
| 149 | 150 | return VLC_EGENERIC; |
|---|
| | 151 | } |
|---|
| 150 | 152 | p_cat->psz_name = strdup( psz_cat ); |
|---|
| 151 | 153 | p_cat->i_infos = 0; |
|---|
| … | … | |
| 164 | 166 | if( p_cat->pp_infos[i]->psz_value ) |
|---|
| 165 | 167 | free( p_cat->pp_infos[i]->psz_value ); |
|---|
| 166 | | return VLC_EGENERIC; |
|---|
| | 168 | break; |
|---|
| 167 | 169 | } |
|---|
| 168 | 170 | } |
|---|
| … | … | |
| 172 | 174 | p_info = malloc( sizeof( info_t ) ); |
|---|
| 173 | 175 | if( !p_info ) |
|---|
| | 176 | { |
|---|
| | 177 | vlc_mutex_lock( &p_input->input.p_item->lock ); |
|---|
| 174 | 178 | return VLC_EGENERIC; |
|---|
| | 179 | } |
|---|
| | 180 | |
|---|
| 175 | 181 | INSERT_ELEM( p_cat->pp_infos, p_cat->i_infos, |
|---|
| 176 | 182 | p_cat->i_infos, p_info ); |
|---|
| … | … | |
| 200 | 206 | { |
|---|
| 201 | 207 | if( !strcmp( p_input->input.p_item->pp_categories[i]->psz_name, |
|---|
| 202 | | psz_cat ) ) |
|---|
| 203 | | return VLC_EGENERIC; |
|---|
| | 208 | psz_cat ) ) break; |
|---|
| 204 | 209 | } |
|---|
| 205 | 210 | |
|---|
| … | … | |
| 230 | 235 | char *psz_name = (char *)va_arg( args, char * ); |
|---|
| 231 | 236 | |
|---|
| 232 | | if( !psz_name ) |
|---|
| 233 | | return VLC_EGENERIC; |
|---|
| | 237 | if( !psz_name ) return VLC_EGENERIC; |
|---|
| 234 | 238 | |
|---|
| 235 | 239 | vlc_mutex_lock( &p_input->input.p_item->lock ); |
|---|