mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
multiqueue: Fix access to NULL pointer
sq can be NULL. Also fix commit message (it's the queue we are iterating over that we are logging, not the one passed as argument). CID #1415569
This commit is contained in:
parent
1b0059e0c5
commit
78ee0dfad1
1 changed files with 3 additions and 2 deletions
|
@ -1301,7 +1301,7 @@ calculate_interleave (GstMultiQueue * mq, GstSingleQueue * sq)
|
|||
}
|
||||
GST_LOG_OBJECT (mq,
|
||||
"queue %d , sinktime:%" GST_STIME_FORMAT " low:%" GST_STIME_FORMAT
|
||||
" high:%" GST_STIME_FORMAT, sq->id,
|
||||
" high:%" GST_STIME_FORMAT, oq->id,
|
||||
GST_STIME_ARGS (oq->cached_sinktime), GST_STIME_ARGS (low),
|
||||
GST_STIME_ARGS (high));
|
||||
}
|
||||
|
@ -1310,7 +1310,8 @@ calculate_interleave (GstMultiQueue * mq, GstSingleQueue * sq)
|
|||
interleave = high - low;
|
||||
/* Padding of interleave and minimum value */
|
||||
interleave = (150 * interleave / 100) + mq->min_interleave_time;
|
||||
sq->interleave = interleave;
|
||||
if (sq)
|
||||
sq->interleave = interleave;
|
||||
|
||||
interleave = MAX (interleave, other_interleave);
|
||||
|
||||
|
|
Loading…
Reference in a new issue