mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +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;
|
||||
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 */
|
||||
GST_QUEUE_MUTEX_LOCK_CHECK (queue, out_flushing);
|
||||
|
@ -1123,7 +1123,7 @@ gst_queue_loop (GstPad * pad)
|
|||
GstQueue *queue;
|
||||
GstFlowReturn ret;
|
||||
|
||||
queue = GST_QUEUE (GST_PAD_PARENT (pad));
|
||||
queue = (GstQueue *) GST_PAD_PARENT (pad);
|
||||
|
||||
/* have to lock for thread-safety */
|
||||
GST_QUEUE_MUTEX_LOCK_CHECK (queue, out_flushing);
|
||||
|
|
Loading…
Reference in a new issue