ffmpegdec: react to the reconfigure event

Also renegotiate the caps and bufferpool when we have a rereconfigure event
pending.
This commit is contained in:
Wim Taymans 2011-08-05 12:04:13 +02:00
parent dc12f1c9c9
commit 7ae8b453ca

View file

@ -1211,6 +1211,8 @@ gst_ffmpegdec_video_negotiate (GstFFMpegDec * ffmpegdec, gboolean force)
oclass = (GstFFMpegDecClass *) (G_OBJECT_GET_CLASS (ffmpegdec));
force |= gst_pad_check_reconfigure (ffmpegdec->srcpad);
/* first check if anything changed */
if (!update_video_context (ffmpegdec, force))
return TRUE;