mirror of https://github.com/mpv-player/mpv
fixed small memleak
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13521 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
4ef48d5178
commit
ac7f335995
|
@ -156,6 +156,7 @@ ao_functions_t* init_best_audio_out(char** ao_list,int use_plugin,int rate,int c
|
|||
}
|
||||
}
|
||||
// continue...
|
||||
free(ao);
|
||||
++ao_list;
|
||||
if(!(ao_list[0])) return NULL; // do NOT fallback to others
|
||||
}
|
||||
|
|
|
@ -703,12 +703,13 @@ if(file_format==DEMUXER_TYPE_UNKNOWN || file_format==DEMUXER_TYPE_AVI){
|
|||
if(id==formtypeAVI){
|
||||
mp_msg(MSGT_DEMUXER,MSGL_INFO,MSGTR_Detected_XXX_FileFormat,"AVI");
|
||||
file_format=DEMUXER_TYPE_AVI;
|
||||
} else {
|
||||
}
|
||||
}
|
||||
if (file_format==DEMUXER_TYPE_UNKNOWN) {
|
||||
free_demuxer(demuxer);
|
||||
demuxer = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//=============== Try to open as Y4M file: =================
|
||||
if(file_format==DEMUXER_TYPE_UNKNOWN || file_format==DEMUXER_TYPE_Y4M){
|
||||
|
|
Loading…
Reference in New Issue