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:
Edward Hervey 2009-09-28 13:19:10 +02:00
parent d28a3e7435
commit 8c67b6390e

View file

@ -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 */