Commit b2e6870e authored by Janne Grunau's avatar Janne Grunau Committed by Sebastian Dröge
Browse files

queue2: prevent calculation with GST_CLOCK_TIME_NONE in update_time_level()

parent 0e949610
...@@ -699,7 +699,9 @@ update_time_level (GstQueue2 * queue) ...@@ -699,7 +699,9 @@ update_time_level (GstQueue2 * queue)
GST_DEBUG_OBJECT (queue, "sink %" GST_TIME_FORMAT ", src %" GST_TIME_FORMAT, GST_DEBUG_OBJECT (queue, "sink %" GST_TIME_FORMAT ", src %" GST_TIME_FORMAT,
GST_TIME_ARGS (queue->sinktime), GST_TIME_ARGS (queue->srctime)); 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; queue->cur_level.time = queue->sinktime - queue->srctime;
else else
queue->cur_level.time = 0; queue->cur_level.time = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment