Changeset 528f0214d6cd1acfcf915f7f6f001a30622903b4
- Timestamp:
- 09/16/07 11:15:27
(1 year ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1189934127 +0000
- git-parent:
[050de848d0276e264a2659be2c9715e534ee41b4]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1189934127 +0000
- Message:
Switch the few var_GetString remains to var_GetNonEmptyString
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r54bcbe1 |
r528f021 |
|
| 1037 | 1037 | |
|---|
| 1038 | 1038 | f_preamp = var_GetFloat( p_aout, "equalizer-preamp" ); |
|---|
| 1039 | | psz_bands = var_GetString( p_aout, "equalizer-bands" ); |
|---|
| | 1039 | psz_bands = var_GetNonEmptyString( p_aout, "equalizer-bands" ); |
|---|
| | 1040 | if( psz_bands == NULL ) |
|---|
| | 1041 | psz_bands = strdup(""); |
|---|
| 1040 | 1042 | b_update = VLC_TRUE; |
|---|
| 1041 | 1043 | } |
|---|
| r6df62cf |
r528f021 |
|
| 159 | 159 | { |
|---|
| 160 | 160 | msg_Dbg( p_sd, "Update required" ); |
|---|
| 161 | | psz_urls = var_GetString( p_sd, "podcast-urls" ); |
|---|
| 162 | | ParseUrls( p_sd, psz_urls ); |
|---|
| | 161 | psz_urls = var_GetNonEmptyString( p_sd, "podcast-urls" ); |
|---|
| | 162 | if( psz_urls != NULL ) |
|---|
| | 163 | ParseUrls( p_sd, psz_urls ); |
|---|
| 163 | 164 | free( psz_urls ); |
|---|
| 164 | 165 | p_sys->b_update = VLC_FALSE; |
|---|
| r6ee1e19 |
r528f021 |
|
| 360 | 360 | return 0; |
|---|
| 361 | 361 | |
|---|
| 362 | | psz_aspect = var_GetString( p_vout, "aspect-ratio" ); |
|---|
| 363 | | vlc_object_release( p_vout ); |
|---|
| 364 | | return psz_aspect; |
|---|
| | 362 | psz_aspect = var_GetNonEmptyString( p_vout, "aspect-ratio" ); |
|---|
| | 363 | vlc_object_release( p_vout ); |
|---|
| | 364 | return psz_aspect ? psz_aspect : strdup(""); |
|---|
| 365 | 365 | } |
|---|
| 366 | 366 | |
|---|
| … | … | |
| 459 | 459 | return 0; |
|---|
| 460 | 460 | |
|---|
| 461 | | psz_geometry = var_GetString( p_vout, "crop" ); |
|---|
| 462 | | vlc_object_release( p_vout ); |
|---|
| 463 | | return psz_geometry; |
|---|
| | 461 | psz_geometry = var_GetNonEmptyString( p_vout, "crop" ); |
|---|
| | 462 | vlc_object_release( p_vout ); |
|---|
| | 463 | return psz_geometry ? psz_geometry : strdup(""); |
|---|
| 464 | 464 | } |
|---|
| 465 | 465 | |
|---|
| rcc3bd15 |
r528f021 |
|
| 51 | 51 | { |
|---|
| 52 | 52 | free( p_demux->psz_demux ); |
|---|
| 53 | | p_demux->psz_demux = var_GetString( p_obj, "demux" ); |
|---|
| | 53 | p_demux->psz_demux = var_GetNonEmptyString( p_obj, "demux" ); |
|---|
| | 54 | if( p_demux->psz_demux == NULL ) |
|---|
| | 55 | p_demux->psz_demux = strdup( "" ); |
|---|
| 54 | 56 | } |
|---|
| 55 | 57 | |
|---|
| r668607b |
r528f021 |
|
| 996 | 996 | if( val.b_bool ) |
|---|
| 997 | 997 | { |
|---|
| 998 | | char *psz_autopath = var_GetString( p_input, "sub-autodetect-path" ); |
|---|
| | 998 | char *psz_autopath = var_GetNonEmptyString( p_input, "sub-autodetect-path" ); |
|---|
| 999 | 999 | char **subs = subtitles_Detect( p_input, psz_autopath, |
|---|
| 1000 | 1000 | p_input->p->input.p_item->psz_uri ); |
|---|
| 1001 | 1001 | input_source_t *sub; |
|---|
| 1002 | 1002 | i = 0; |
|---|
| | 1003 | if( psz_autopath == NULL ) |
|---|
| | 1004 | psz_autopath = strdup(""); |
|---|
| 1003 | 1005 | |
|---|
| 1004 | 1006 | /* Try to autoselect the first autodetected subtitles file |
|---|