simple plugin (read xml file, add changes and save it)

underspider underspider at gmail.com
Sun Apr 5 05:59:25 PDT 2015


I have a task to read pair of xml-files from disk and generate new one
xml-file and save it to disk.

Pipeline looks like:
gst-launch filesrc location=1.xml ! myplugin name=my my.firstxml ! filesink
location=res.xml \
filesrc location=2.xml ! my.secondxml 

But I'm have an issue that pipeline stuck after gst_pad_push
(filter->srcpadresXml, out_res_buffer) which I call from
gst_myplugin_collected(GstCollectPads* pads, GstMYPLUGIN* filter)
Even res.xml has no data and has 0 bytes size
Seems filesink element switches to pause and waiting for something.

if I add queue element to the pipeline than some data appears in res.xml but
the pipeline is still paused.

Last log messages (--gst-debug-level=4) are:
0:00:00.593916147  8455  0x8d5cac8 DEBUG              GST_BUS
gstbus.c:404:gst_bus_post:<bus0> [msg 0x8d85990] dropped
0:00:00.593926290  8455  0x8d5cac8 DEBUG             basesink
gstbasesink.c:1534:gst_base_sink_get_sync_times:<filesink0> got times start:
0:00:00.000000000, stop: 99:99:99.999999999, do_sync 0
0:00:00.593934237  8455  0x8d5cac8 DEBUG             basesink
gstbasesink.c:1943:gst_base_sink_do_sync:<filesink0> prerolling object
0x8d8c418
0:00:00.593939726  8455  0x8d5cac8 DEBUG             basesink
gstbasesink.c:1732:gst_base_sink_wait_preroll:<filesink0> waitingin preroll
for flush or PLAYING



What I do wrong? Might be I have to send something like special
event/message to filesink?

P.S. I have few experience in Gstreamer pipeline developing 

Please advice.



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/simple-plugin-read-xml-file-add-changes-and-save-it-tp4671453.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list