+2007-01-17 Edward Hervey <edward@fluendo.com>
+
+ * plugins/elements/gstmultiqueue.c: (gst_single_queue_new):
+ When dynamically creating single queues, activate sinkpad before adding
+ it.
+ We should be doing the same thing for the source pad, but we can't
+ since it would call a method which needs the parent to be set in order
+ to work propertly. Instead of activating the source pad, we just unset
+ the flushing flag, which is the minimal requirement for adding a pad
+ to an element in a state greater than READY.
+
2007-01-17 Edward Hervey <edward@fluendo.com>
* docs/faq/gst-uninstalled:
sq->mqueue = mqueue;
sq->srcresult = GST_FLOW_OK;
- sq->queue =
- gst_data_queue_new ((GstDataQueueCheckFullFunction)
+ sq->queue = gst_data_queue_new ((GstDataQueueCheckFullFunction)
single_queue_check_full, sq);
sq->nextid = -1;
gst_pad_set_element_private (sq->sinkpad, (gpointer) sq);
gst_pad_set_element_private (sq->srcpad, (gpointer) sq);
+ gst_pad_set_active (sq->sinkpad, TRUE);
gst_element_add_pad (GST_ELEMENT (mqueue), sq->sinkpad);
+
+ GST_OBJECT_FLAG_UNSET (sq->srcpad, GST_PAD_FLUSHING);
gst_element_add_pad (GST_ELEMENT (mqueue), sq->srcpad);
gst_pad_set_active (sq->srcpad, TRUE);