mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-05 15:08:48 +00:00
Added the queue to the thread
Original commit message from CVS: Added the queue to the thread
This commit is contained in:
parent
f5314d44b4
commit
247c0f1e90
1 changed files with 3 additions and 2 deletions
|
@ -432,12 +432,13 @@ differ:
|
||||||
// create a new queue and add to the previous bin
|
// create a new queue and add to the previous bin
|
||||||
queue = gst_elementfactory_make("queue", g_strconcat("queue_", GST_ELEMENT_NAME(element), NULL));
|
queue = gst_elementfactory_make("queue", g_strconcat("queue_", GST_ELEMENT_NAME(element), NULL));
|
||||||
GST_DEBUG (0,"adding element \"%s\"\n", GST_ELEMENT_NAME (element));
|
GST_DEBUG (0,"adding element \"%s\"\n", GST_ELEMENT_NAME (element));
|
||||||
gst_bin_add(GST_BIN(thebin), queue);
|
|
||||||
gst_autoplug_signal_new_object (GST_AUTOPLUG (autoplug), GST_OBJECT (queue));
|
|
||||||
|
|
||||||
// this will be the new bin for all following elements
|
// this will be the new bin for all following elements
|
||||||
thebin = gst_elementfactory_make("thread", g_strconcat("thread_", GST_ELEMENT_NAME(element), NULL));
|
thebin = gst_elementfactory_make("thread", g_strconcat("thread_", GST_ELEMENT_NAME(element), NULL));
|
||||||
|
|
||||||
|
gst_bin_add(GST_BIN(thebin), queue);
|
||||||
|
gst_autoplug_signal_new_object (GST_AUTOPLUG (autoplug), GST_OBJECT (queue));
|
||||||
|
|
||||||
srcpad = gst_element_get_pad(queue, "src");
|
srcpad = gst_element_get_pad(queue, "src");
|
||||||
|
|
||||||
gst_autoplug_pads_autoplug(thesrcelement, queue);
|
gst_autoplug_pads_autoplug(thesrcelement, queue);
|
||||||
|
|
Loading…
Reference in a new issue