plugins/queue: Just cast to the object parent instead of typechecking.

This commit is contained in:
Edward Hervey 2009-09-28 13:21:07 +02:00
parent fe366f7b24
commit b1945ad429

View file

@ -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);