1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-29 18:42:09 +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)){
// name matches, try it
if(!video_driver->preinit(vo_subdevice))
{
free(vo);
return video_driver; // success!
}
}
}
// continue...
free(vo);
++vo_list;
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;
free(result);
return result2;
}