int main (int argc,char *argv[]) {
GstCaps *caps;
- int i;
gst_init(&argc,&argv);
}
else {
res = gst_autoplug_can_match ((GstElementFactory *)src, (GstElementFactory *)dest);
+ //GST_INFO (GST_CAT_AUTOPLUG_ATTEMPT,"factory %s to factory %s %d",
+// ((GstElementFactory *)src)->name, ((GstElementFactory *)dest)->name, res);
}
if (res)
}
/* out internal element fired EOS, we decrement the number of pending EOS childs */
-static void
+G_GNUC_UNUSED static void
gst_bin_received_eos (GstElement *element, GstBin *bin)
{
GST_INFO_ELEMENT (GST_CAT_PLANNING, bin, "child %s fired eos, pending %d", GST_ELEMENT_NAME (element),
GST_DEBUG (GST_CAT_NEGOTIATION, "pads aggreed on caps :)\n");
newcaps = GST_PAD_CAPS (pad);
- g_return_val_if_fail(newcaps != NULL, FALSE); // FIXME is this valid?
+ //g_return_val_if_fail(newcaps != NULL, FALSE); // FIXME is this valid?
/* here we have some sort of aggreement of the caps */
GST_PAD_CAPS (currentpad) = gst_caps_ref (newcaps);
queue = GST_QUEUE (GST_OBJECT_PARENT (pad));
return gst_pad_negotiate_proxy (pad, queue->sinkpad, caps);
-
-
- //return GST_PAD_NEGOTIATE_FAIL;
}
static GstPadNegotiateReturn
queue = GST_QUEUE (GST_OBJECT_PARENT (pad));
- /*
- if (counter == 0) {
- *caps = NULL;
- return GST_PAD_NEGOTIATE_TRY;
- }
- if (*caps) {
- */
- return gst_pad_negotiate_proxy (pad, queue->srcpad, caps);
- /*
- }
-
- return GST_PAD_NEGOTIATE_FAIL;
- */
+ return gst_pad_negotiate_proxy (pad, queue->srcpad, caps);
}
static gboolean
gst_queue_chain (GstPad *pad, GstBuffer *buf)
{
GstQueue *queue;
- gboolean tosignal = FALSE;
const guchar *name;
g_return_if_fail (pad != NULL);
}
}
-static void
+G_GNUC_UNUSED static void
gst_schedule_chained_chain (GstBin *bin, _GstBinChain *chain) {
GList *elements;
GstElement *element;
queue = GST_QUEUE (GST_OBJECT_PARENT (pad));
return gst_pad_negotiate_proxy (pad, queue->sinkpad, caps);
-
-
- //return GST_PAD_NEGOTIATE_FAIL;
}
static GstPadNegotiateReturn
queue = GST_QUEUE (GST_OBJECT_PARENT (pad));
- /*
- if (counter == 0) {
- *caps = NULL;
- return GST_PAD_NEGOTIATE_TRY;
- }
- if (*caps) {
- */
- return gst_pad_negotiate_proxy (pad, queue->srcpad, caps);
- /*
- }
-
- return GST_PAD_NEGOTIATE_FAIL;
- */
+ return gst_pad_negotiate_proxy (pad, queue->srcpad, caps);
}
static gboolean
gst_queue_chain (GstPad *pad, GstBuffer *buf)
{
GstQueue *queue;
- gboolean tosignal = FALSE;
const guchar *name;
g_return_if_fail (pad != NULL);