SEGMENT_DONE Message not fired
René Calles
gstreamer at renevolution.com
Sat Oct 25 16:19:25 PDT 2014
Hi all,
i really need help on this topic as after hours of searching the documentation and google i found no solution for my problem.
I am using the following code:
gst_bin_add_many(GST_BIN (app.pipeline), app.source, app.demuxer, NULL);
gst_element_link_many(app.source, app.demuxer, NULL);
if( gst_element_set_state(app.pipeline, GST_STATE_PAUSED) == GST_STATE_CHANGE_FAILURE ) {
printf( "Failed to pause pipeline!\n" );
return 1;
}
gst_element_get_state(app.pipeline, NULL, NULL, GST_CLOCK_TIME_NONE);
/* Setting up the Pipeline using Segments */
if (!gst_element_seek(app.pipeline, 1.0, GST_FORMAT_TIME,
(GstSeekFlags) (GST_SEEK_FLAG_SEGMENT | GST_SEEK_FLAG_FLUSH),
GST_SEEK_TYPE_SET, 0, GST_SEEK_TYPE_NONE, GST_CLOCK_TIME_NONE)) {
g_printerr("Seek failed!\n");
};
/* Connect demuxer with decoder pads */
g_signal_connect (app.demuxer, "pad-added", G_CALLBACK(on_pad_added), &app);
/* If all pads handled we can init the rest of the pipeline */
g_signal_connect (app.demuxer, "no-more-pads", G_CALLBACK(on_no_more_pads), &app);
gst_element_set_state(app.pipeline, GST_STATE_PLAYING);
As far as i know this should set up the pipeline to use segments but i never receive a GST_MESSAGE_SEGMENT_DONE on the bus.
Is there anything obvious i am doing wrong?
Thanks,
René
--
René Calles
Sent with Airmail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20141026/8d336b67/attachment.html>
More information about the gstreamer-devel
mailing list