uridecodebin - creating bin and adding to pipeline
Stuart Gray
stuart68 at gmail.com
Mon Oct 3 04:33:27 PDT 2011
Hi,
Can someone help me get this right. I want to create a bin which uses
uridecodebin and then add it to my pipeline. I have certain signal and
properties I wish to set on uridecodebin, here is the code:
pipeline = gst_pipeline_new("");
GstElement* uriDecodebin = gst_bin_new("uridecodebin");
gst_bin_add(GST_BIN(pipeline), uriDecodebin);
g_signal_connect(uriDecodebin, "pad-added",
G_CALLBACK(callbackPadAdded), this);
g_signal_connect(uriDecodebin, "drained",
G_CALLBACK(sourceDrainedCallback), this);
bool useBuffering = false;
g_object_set(G_OBJECT(uriDecodebin),
"buffer-size", 150000,
"download", "false",
"use-buffering", useBuffering,
NULL);
When I try to run this I get:
(<unknown>:1371): GLib-GObject-WARNING **: gsignal.c:2273: signal `drained'
is invalid for instance `0x483030'
(<unknown>:1371): GLib-GObject-WARNING **: IA__g_object_set_valist: object
class `GstBin' has no property named `buffer-size'
(<unknown>:1371): GStreamer-CRITICAL **: gst_element_link_pads_full:
assertion `GST_IS_ELEMENT (dest)' failed
Thanks,
Stuart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20111003/3030272e/attachment.htm>
More information about the gstreamer-devel
mailing list