mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
queue: source and sink pads proxy caps
This commit is contained in:
parent
2fe5b4cf91
commit
9d6b8d14c3
1 changed files with 2 additions and 0 deletions
|
@ -394,6 +394,7 @@ gst_queue_init (GstQueue * queue)
|
|||
gst_pad_set_event_function (queue->sinkpad, gst_queue_handle_sink_event);
|
||||
gst_pad_set_query_function (queue->sinkpad, gst_queue_handle_sink_query);
|
||||
gst_pad_set_link_function (queue->sinkpad, gst_queue_link_sink);
|
||||
GST_PAD_SET_PROXY_CAPS (queue->sinkpad);
|
||||
gst_element_add_pad (GST_ELEMENT (queue), queue->sinkpad);
|
||||
|
||||
queue->srcpad = gst_pad_new_from_static_template (&srctemplate, "src");
|
||||
|
@ -403,6 +404,7 @@ gst_queue_init (GstQueue * queue)
|
|||
gst_pad_set_link_function (queue->srcpad, gst_queue_link_src);
|
||||
gst_pad_set_event_function (queue->srcpad, gst_queue_handle_src_event);
|
||||
gst_pad_set_query_function (queue->srcpad, gst_queue_handle_src_query);
|
||||
GST_PAD_SET_PROXY_CAPS (queue->srcpad);
|
||||
gst_element_add_pad (GST_ELEMENT (queue), queue->srcpad);
|
||||
|
||||
GST_QUEUE_CLEAR_LEVEL (queue->cur_level);
|
||||
|
|
Loading…
Reference in a new issue