videomixer: The queued duration is a signed integer

...and it will really be negative sometimes.
This commit is contained in:
Sebastian Dröge 2009-12-09 21:15:07 +01:00
parent 7418dee253
commit 93089ef445

View file

@ -1263,7 +1263,7 @@ static void
gst_videomixer_update_queues (GstVideoMixer * mix) gst_videomixer_update_queues (GstVideoMixer * mix)
{ {
GSList *walk; GSList *walk;
guint64 interval; gint64 interval;
interval = mix->master->queued; interval = mix->master->queued;
if (interval <= 0) { if (interval <= 0) {
@ -1272,7 +1272,7 @@ gst_videomixer_update_queues (GstVideoMixer * mix)
} else { } else {
interval = gst_util_uint64_scale_int (GST_SECOND, mix->fps_d, mix->fps_n); interval = gst_util_uint64_scale_int (GST_SECOND, mix->fps_d, mix->fps_n);
} }
GST_LOG_OBJECT (mix, "set interval to %" G_GUINT64_FORMAT " nanoseconds", GST_LOG_OBJECT (mix, "set interval to %" G_GINT64_FORMAT " nanoseconds",
interval); interval);
} }