X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fvideo_output%2Fvout_intf.c;h=9103b22a3c5335972670144efe16db4a2852f219;hb=59dec65d5fe153565ea8705767874a2d876d2103;hp=6218844119e4da1620e7b8167e4fc54adf861812;hpb=46c39c8e9c2e0ec3ba1bf8dc37e6e3e5efb59a08;p=vlc diff --git a/src/video_output/vout_intf.c b/src/video_output/vout_intf.c index 6218844119..9103b22a3c 100644 --- a/src/video_output/vout_intf.c +++ b/src/video_output/vout_intf.c @@ -576,15 +576,15 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic ) } #if defined(__APPLE__) || defined(SYS_BEOS) - if( !val.psz_string && p_vout->p_libvlc->psz_homedir ) + if( !val.psz_string ) { if( asprintf( &val.psz_string, "%s/Desktop", - p_vout->p_libvlc->psz_homedir ) == -1 ) + config_GetHomeDir() ) == -1 ) val.psz_string = NULL; } #elif defined(WIN32) && !defined(UNDER_CE) - if( !val.psz_string && p_vout->p_libvlc->psz_homedir ) + if( !val.psz_string ) { /* Get the My Pictures folder path */ @@ -622,8 +622,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic ) if( p_mypicturesdir == NULL ) { - if( asprintf( &val.psz_string, "%s", - p_vout->p_libvlc->psz_homedir ) == -1 ) + if( asprintf( &val.psz_string, "%s", config_GetHomeDir() ) == -1 ) val.psz_string = NULL; } else