From: Janne Grunau Date: Wed, 13 Apr 2011 15:26:54 +0000 (+0200) Subject: queue2: prevent calculation with GST_CLOCK_TIME_NONE in update_time_level() X-Git-Tag: RELEASE-0.10.33~66 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b2e6870edc7824489f7c74789fba3ced60eb49e8;p=platform%2Fupstream%2Fgstreamer.git queue2: prevent calculation with GST_CLOCK_TIME_NONE in update_time_level() --- diff --git a/plugins/elements/gstqueue2.c b/plugins/elements/gstqueue2.c index 431c131..9f62488 100644 --- a/plugins/elements/gstqueue2.c +++ b/plugins/elements/gstqueue2.c @@ -699,7 +699,9 @@ update_time_level (GstQueue2 * queue) GST_DEBUG_OBJECT (queue, "sink %" GST_TIME_FORMAT ", src %" GST_TIME_FORMAT, GST_TIME_ARGS (queue->sinktime), GST_TIME_ARGS (queue->srctime)); - if (queue->sinktime >= queue->srctime) + if (queue->sinktime != GST_CLOCK_TIME_NONE + && queue->srctime != GST_CLOCK_TIME_NONE + && queue->sinktime >= queue->srctime) queue->cur_level.time = queue->sinktime - queue->srctime; else queue->cur_level.time = 0;