mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 02:45:35 +00:00
plugins/queue: Just cast to the object parent instead of typechecking.
This commit is contained in:
parent
fe366f7b24
commit
b1945ad429
1 changed files with 2 additions and 2 deletions
|
@ -877,7 +877,7 @@ gst_queue_chain (GstPad * pad, GstBuffer * buffer)
|
||||||
GstQueue *queue;
|
GstQueue *queue;
|
||||||
GstClockTime duration, timestamp;
|
GstClockTime duration, timestamp;
|
||||||
|
|
||||||
queue = GST_QUEUE (GST_OBJECT_PARENT (pad));
|
queue = (GstQueue *) GST_OBJECT_PARENT (pad);
|
||||||
|
|
||||||
/* we have to lock the queue since we span threads */
|
/* we have to lock the queue since we span threads */
|
||||||
GST_QUEUE_MUTEX_LOCK_CHECK (queue, out_flushing);
|
GST_QUEUE_MUTEX_LOCK_CHECK (queue, out_flushing);
|
||||||
|
@ -1123,7 +1123,7 @@ gst_queue_loop (GstPad * pad)
|
||||||
GstQueue *queue;
|
GstQueue *queue;
|
||||||
GstFlowReturn ret;
|
GstFlowReturn ret;
|
||||||
|
|
||||||
queue = GST_QUEUE (GST_PAD_PARENT (pad));
|
queue = (GstQueue *) GST_PAD_PARENT (pad);
|
||||||
|
|
||||||
/* have to lock for thread-safety */
|
/* have to lock for thread-safety */
|
||||||
GST_QUEUE_MUTEX_LOCK_CHECK (queue, out_flushing);
|
GST_QUEUE_MUTEX_LOCK_CHECK (queue, out_flushing);
|
||||||
|
|
Loading…
Reference in a new issue