mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
plugins/multiqueue: Use cached value instead of expensive object get.
The task will always exist as long as its owner (i.e. the pad) and that owner's owner (i.e. multiqueue) exist. Reduces the number of instruction fetches by 36%.
This commit is contained in:
parent
d28a3e7435
commit
8c67b6390e
1 changed files with 1 additions and 3 deletions
|
@ -966,7 +966,7 @@ gst_multi_queue_chain (GstPad * pad, GstBuffer * buffer)
|
|||
GstClockTime timestamp, duration;
|
||||
|
||||
sq = gst_pad_get_element_private (pad);
|
||||
mq = (GstMultiQueue *) gst_pad_get_parent (pad);
|
||||
mq = sq->mqueue;
|
||||
|
||||
/* Get a unique incrementing id */
|
||||
GST_MULTI_QUEUE_MUTEX_LOCK (mq);
|
||||
|
@ -989,8 +989,6 @@ gst_multi_queue_chain (GstPad * pad, GstBuffer * buffer)
|
|||
apply_buffer (mq, sq, timestamp, duration, &sq->sink_segment);
|
||||
|
||||
done:
|
||||
gst_object_unref (mq);
|
||||
|
||||
return ret;
|
||||
|
||||
/* ERRORS */
|
||||
|
|
Loading…
Reference in a new issue