mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
[MOVED FROM BAD 16/57] gst/flv/gstflvparse.c: Output segment with proper 'stop' value, makes flvdemux 100% compatible with gnonlin.
Original commit message from CVS: * gst/flv/gstflvparse.c: (gst_flv_parse_tag_audio), (gst_flv_parse_tag_video): Output segment with proper 'stop' value, makes flvdemux 100% compatible with gnonlin.
This commit is contained in:
parent
9aef7a25e3
commit
0ece771e85
1 changed files with 12 additions and 8 deletions
|
@ -610,10 +610,12 @@ gst_flv_parse_tag_audio (GstFLVDemux * demux, const guint8 * data,
|
||||||
if (!demux->new_seg_event) {
|
if (!demux->new_seg_event) {
|
||||||
GST_DEBUG_OBJECT (demux, "pushing newsegment from %"
|
GST_DEBUG_OBJECT (demux, "pushing newsegment from %"
|
||||||
GST_TIME_FORMAT " to %" GST_TIME_FORMAT,
|
GST_TIME_FORMAT " to %" GST_TIME_FORMAT,
|
||||||
GST_TIME_ARGS (demux->segment->last_stop), GST_TIME_ARGS (-1));
|
GST_TIME_ARGS (demux->segment->last_stop),
|
||||||
demux->new_seg_event = gst_event_new_new_segment (FALSE,
|
GST_TIME_ARGS (demux->segment->stop));
|
||||||
demux->segment->rate, demux->segment->format,
|
demux->new_seg_event =
|
||||||
demux->segment->last_stop, -1, demux->segment->last_stop);
|
gst_event_new_new_segment (FALSE, demux->segment->rate,
|
||||||
|
demux->segment->format, demux->segment->last_stop,
|
||||||
|
demux->segment->stop, demux->segment->last_stop);
|
||||||
} else {
|
} else {
|
||||||
GST_DEBUG_OBJECT (demux, "pushing pre-generated newsegment event");
|
GST_DEBUG_OBJECT (demux, "pushing pre-generated newsegment event");
|
||||||
}
|
}
|
||||||
|
@ -865,10 +867,12 @@ gst_flv_parse_tag_video (GstFLVDemux * demux, const guint8 * data,
|
||||||
if (!demux->new_seg_event) {
|
if (!demux->new_seg_event) {
|
||||||
GST_DEBUG_OBJECT (demux, "pushing newsegment from %"
|
GST_DEBUG_OBJECT (demux, "pushing newsegment from %"
|
||||||
GST_TIME_FORMAT " to %" GST_TIME_FORMAT,
|
GST_TIME_FORMAT " to %" GST_TIME_FORMAT,
|
||||||
GST_TIME_ARGS (demux->segment->last_stop), GST_TIME_ARGS (-1));
|
GST_TIME_ARGS (demux->segment->last_stop),
|
||||||
demux->new_seg_event = gst_event_new_new_segment (FALSE,
|
GST_TIME_ARGS (demux->segment->stop));
|
||||||
demux->segment->rate, demux->segment->format,
|
demux->new_seg_event =
|
||||||
demux->segment->last_stop, -1, demux->segment->last_stop);
|
gst_event_new_new_segment (FALSE, demux->segment->rate,
|
||||||
|
demux->segment->format, demux->segment->last_stop,
|
||||||
|
demux->segment->stop, demux->segment->last_stop);
|
||||||
} else {
|
} else {
|
||||||
GST_DEBUG_OBJECT (demux, "pushing pre-generated newsegment event");
|
GST_DEBUG_OBJECT (demux, "pushing pre-generated newsegment event");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue