mirror of
https://github.com/mpv-player/mpv
synced 2024-11-03 03:19:24 +01:00
Do not call VFCTRL_FLUSH_FRAMES when the filter chain was never configured,
since that will cause crashes (try with e.g. -ss 99999999999999). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19393 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
99a8a0d1b4
commit
822fa55de5
@ -1543,6 +1543,9 @@ if (!interrupted && filelist[++curfile].name != 0) {
|
||||
|
||||
/* Emit the remaining frames in the video system */
|
||||
/*TODO emit frmaes delayed by decoder lag*/
|
||||
if (!((vf_instance_t *)sh_video->vfilter)->fmt.have_configured) {
|
||||
mp_msg(MSGT_MENCODER, MSGL_WARN, "\nFilters have not been configured! Empty file?\n");
|
||||
} else
|
||||
if(sh_video && sh_video->vfilter){
|
||||
mp_msg(MSGT_MENCODER, MSGL_INFO, "\nFlushing video frames\n");
|
||||
((vf_instance_t *)sh_video->vfilter)->control(sh_video->vfilter,
|
||||
|
Loading…
Reference in New Issue
Block a user