[Bug 750660] tsdemux and push-mode not calculating
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Tue Jun 9 17:13:00 PDT 2015
https://bugzilla.gnome.org/show_bug.cgi?id=750660
--- Comment #3 from iotapi322 at icloud.com ---
Hello,
Yes it does work with pushfile://uri, however the baseFormat is not
GST_FORMAT_TIME, where as my HLS Demux is indeed setting the segment with the
GST_FORMAT_TIME parameter. I should have mentioned this earlier.
Here is my segment code that I send on new streams and after a flush stop:
GstEvent *segmentEvent = NULL;
#if GST_CHECK_VERSION(1,0,0)
GstSegment segment;
gst_segment_init(&segment,GST_FORMAT_TIME);
segment.rate = 1.0;
segment.applied_rate = 1.0;
segment.format = GST_FORMAT_TIME;
segment.position = demux->seekpos; //seekpos in a new stream is 0
segment.start = 0;// demux->seekpos; //start;
segment.stop = gst_cisco_hls_get_duration(demux); // duration of the
HLS VOD asset
segment.flags = GST_SEGMENT_FLAG_RESET;
GST_WARNING(" Sending NewSegment message with flag set to reset,
setting:\n new position to %u (ms) \n start %"G_GINT64_FORMAT" \n stop
%"G_GINT64_FORMAT"\n" ,demux->seekpos/ GST_MSECOND,segment.start,
segment.stop);
segmentEvent = gst_event_new_segment (&segment);
Is this what you meant by saying a "TIME segment"?
Thanks,
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list