diff --git a/ChangeLog b/ChangeLog index c7603fc26f..2a605232b6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-10-30 Wim Taymans + + Patch by: Mark Nauwelaerts + + * gst/videomixer/videomixer.c: (gst_videomixer_update_queues): + Fix videomixer so that it can handle any combination of framerates. + Fixes #367221. + 2006-10-28 Wim Taymans * gst/avi/gstavidemux.c: (gst_avi_demux_handle_src_query), diff --git a/gst/videomixer/videomixer.c b/gst/videomixer/videomixer.c index b8d926b81e..fe4eb7c386 100644 --- a/gst/videomixer/videomixer.c +++ b/gst/videomixer/videomixer.c @@ -125,7 +125,7 @@ struct _GstVideoMixerPad { GstPad parent; /* subclass the pad */ - guint64 queued; + gint64 queued; guint in_width, in_height; gint fps_n; @@ -1036,7 +1036,7 @@ gst_videomixer_update_queues (GstVideoMixer * mix) if (mixcol->buffer != NULL && GST_CLOCK_TIME_IS_VALID (pad->queued)) { pad->queued -= interval; GST_DEBUG_OBJECT (pad, "queued now %lld", pad->queued); - if (pad->queued == 0) { + if (pad->queued <= 0) { GST_DEBUG ("unreffing buffer"); gst_buffer_unref (mixcol->buffer); mixcol->buffer = NULL;