GST_MESSAGE_SEGMENT_DONE posted only on pipeline close

Mikl michael.yarochkin at timetronics.be
Mon Nov 20 09:51:44 UTC 2017


Hello,

I have difficulties to play 2 segments from the same file

I am reading segment from file using this
	gst_element_seek(
		_pipeline,
		1,
		GST_FORMAT_TIME,
		(GstSeekFlags)(GST_SEEK_FLAG_SEGMENT | GST_SEEK_FLAG_FLUSH),
		GST_SEEK_TYPE_SET,
		segmentStart,
		GST_SEEK_TYPE_SET,
		segmentEnd)
		!= true)
after starting playback like this:
	gst_element_set_state(_pipeline, GST_STATE_PLAYING);

when i am extracting frames from *appsink * element using
	gst_app_sink_pull_sample((GstAppSink*)sink);

but GST_MESSAGE_SEGMENT_DONE is posted on bus only when i closing file.

And when i trying to play second segment it is stock on extracting frame

What i am doing wrong?

Mikl



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list