summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2007-11-25 10:45:09 +0000
committerEdward Hervey <bilboed@bilboed.com>2007-11-25 10:45:09 +0000
commit67d4bcd555dcab6ce38481deecc1c0179915d268 (patch)
tree496b6e427a89da559a22a26f42751dbc1f74e530 /gst
parent37d4958fca4e27134c8da5cd47e4253a8cb74763 (diff)
downloadgst-plugins-bad-67d4bcd555dcab6ce38481deecc1c0179915d268.tar.gz
gst-plugins-bad-67d4bcd555dcab6ce38481deecc1c0179915d268.tar.bz2
gst-plugins-bad-67d4bcd555dcab6ce38481deecc1c0179915d268.zip
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.
Diffstat (limited to 'gst')
-rw-r--r--gst/flv/gstflvparse.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/gst/flv/gstflvparse.c b/gst/flv/gstflvparse.c
index 87a63f50..3e17de9d 100644
--- a/gst/flv/gstflvparse.c
+++ b/gst/flv/gstflvparse.c
@@ -610,10 +610,12 @@ gst_flv_parse_tag_audio (GstFLVDemux * demux, const guint8 * data,
if (!demux->new_seg_event) {
GST_DEBUG_OBJECT (demux, "pushing newsegment from %"
GST_TIME_FORMAT " to %" GST_TIME_FORMAT,
- GST_TIME_ARGS (demux->segment->last_stop), GST_TIME_ARGS (-1));
- demux->new_seg_event = gst_event_new_new_segment (FALSE,
- demux->segment->rate, demux->segment->format,
- demux->segment->last_stop, -1, demux->segment->last_stop);
+ GST_TIME_ARGS (demux->segment->last_stop),
+ GST_TIME_ARGS (demux->segment->stop));
+ demux->new_seg_event =
+ gst_event_new_new_segment (FALSE, demux->segment->rate,
+ demux->segment->format, demux->segment->last_stop,
+ demux->segment->stop, demux->segment->last_stop);
} else {
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) {
GST_DEBUG_OBJECT (demux, "pushing newsegment from %"
GST_TIME_FORMAT " to %" GST_TIME_FORMAT,
- GST_TIME_ARGS (demux->segment->last_stop), GST_TIME_ARGS (-1));
- demux->new_seg_event = gst_event_new_new_segment (FALSE,
- demux->segment->rate, demux->segment->format,
- demux->segment->last_stop, -1, demux->segment->last_stop);
+ GST_TIME_ARGS (demux->segment->last_stop),
+ GST_TIME_ARGS (demux->segment->stop));
+ demux->new_seg_event =
+ gst_event_new_new_segment (FALSE, demux->segment->rate,
+ demux->segment->format, demux->segment->last_stop,
+ demux->segment->stop, demux->segment->last_stop);
} else {
GST_DEBUG_OBJECT (demux, "pushing pre-generated newsegment event");
}