Changeset 528f0214d6cd1acfcf915f7f6f001a30622903b4

Show
Ignore:
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
  • modules/gui/wxwidgets/extrapanel.cpp

    r54bcbe1 r528f021  
    10371037 
    10381038            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(""); 
    10401042            b_update = VLC_TRUE; 
    10411043        } 
  • modules/services_discovery/podcast.c

    r6df62cf r528f021  
    159159        { 
    160160            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 ); 
    163164            free( psz_urls ); 
    164165            p_sys->b_update = VLC_FALSE; 
  • src/control/video.c

    r6ee1e19 r528f021  
    360360        return 0; 
    361361 
    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("")
    365365} 
    366366 
     
    459459        return 0; 
    460460 
    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("")
    464464} 
    465465 
  • src/input/demux.c

    rcc3bd15 r528f021  
    5151    { 
    5252        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( "" ); 
    5456    } 
    5557 
  • src/input/input.c

    r668607b r528f021  
    996996        if( val.b_bool ) 
    997997        { 
    998             char *psz_autopath = var_GetString( p_input, "sub-autodetect-path" ); 
     998            char *psz_autopath = var_GetNonEmptyString( p_input, "sub-autodetect-path" ); 
    999999            char **subs = subtitles_Detect( p_input, psz_autopath, 
    10001000                                            p_input->p->input.p_item->psz_uri ); 
    10011001            input_source_t *sub; 
    10021002            i = 0; 
     1003            if( psz_autopath == NULL ) 
     1004                psz_autopath = strdup(""); 
    10031005 
    10041006            /* Try to autoselect the first autodetected subtitles file