[gstreamer-bugs] [Bug 527488] New: Gstreamer can't load and create Elements with request pads from XML
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Thu Apr 10 23:44:31 PDT 2008
If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
http://bugzilla.gnome.org/show_bug.cgi?id=527488
GStreamer | common | Ver: 0.10.19
Summary: Gstreamer can't load and create Elements with request
pads from XML
Product: GStreamer
Version: 0.10.19
Platform: Other
OS/Version: Linux
Status: UNCONFIRMED
Severity: major
Priority: Normal
Component: common
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: Dimitri.Herzog at thomson.net
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME version: 2.21/2.22
GNOME milestone: Unspecified
Gstreamer has some problems with XML.
Example:
gst-launch videotestsrc ! tee name=t ! {queue ! ximagesink }
{ t. ! queue ! ximagesink }
this will create a videosource, that will be splitted to two videosinks. Thats
works. But if you save it to XML (with -o name.xml) and run it again with
gst-xmllaunch name.xml you will see only one videosink. Reason: the tee element
has only one sink pad instead of two, but in the xml file you can see two sink
pads.
if tried this example with some c-code:
if you load this xml file with:
GstXML* xml = gst_xml_new ();
bool ret = gst_xml_parse_file (xml, (guchar*)"/home/herzogd/Desktop/test.xml",
NULL);
GstElement *pipeline = gst_xml_get_element (xml, (guchar*)"pipeline0");
GstElement *tee = gst_xml_get_element (xml, (guchar*)"tee0");
g_print("src count: %d", tee->numsrcpads);
you will see, that the tee element had only one srcpad (should be two)!
I've made some experiments:
tee -> one sink tee->numsrcpads = 1, that is correct
tee -> tho sinks tee->numsrcpads = 1, that is NOT correct (should be 2)
tee -> three sinks tee->numsrcpads = 2, that is NOT correct (should be 3)
--
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.
You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=527488.
More information about the Gstreamer-bugs
mailing list