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:
reimar 2006-08-14 14:24:17 +00:00
parent 99a8a0d1b4
commit 822fa55de5
1 changed files with 3 additions and 0 deletions

View File

@ -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,