1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-25 04:39:47 +00:00
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10221 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2003-05-31 17:33:33 +00:00
parent 4a9777a64e
commit 27ce33fe08
2 changed files with 6 additions and 0 deletions

View File

@ -227,10 +227,14 @@ vo_functions_t* init_best_video_out(char** vo_list){
if(!strcmp(info->short_name,vo)){ if(!strcmp(info->short_name,vo)){
// name matches, try it // name matches, try it
if(!video_driver->preinit(vo_subdevice)) if(!video_driver->preinit(vo_subdevice))
{
free(vo);
return video_driver; // success! return video_driver; // success!
} }
} }
}
// continue... // continue...
free(vo);
++vo_list; ++vo_list;
if(!(vo_list[0])) return NULL; // do NOT fallback to others if(!(vo_list[0])) return NULL; // do NOT fallback to others
} }

View File

@ -1740,6 +1740,8 @@ char** sub_filenames(char* path, char *fname)
} }
result2[subcnt] = NULL; result2[subcnt] = NULL;
free(result);
return result2; return result2;
} }