summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2010-05-04 15:47:29 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2010-05-04 15:47:29 +0200
commite84b3c838c22e91ee52c490ba83952540d0ed00c (patch)
tree0f05e3cd7fd498aa9ef02b47033190b461ddaa88
parent50e556cc84026c993982b0415183809c958f1e60 (diff)
oggdemux: fix EOS check
-rw-r--r--ext/ogg/gstoggdemux.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c
index 79d31efb5..4077efd2d 100644
--- a/ext/ogg/gstoggdemux.c
+++ b/ext/ogg/gstoggdemux.c
@@ -610,8 +610,9 @@ gst_ogg_demux_chain_peer (GstOggPad * pad, ogg_packet * packet,
/* check stream eos */
if ((ogg->segment.rate > 0.0 && ogg->segment.stop != GST_CLOCK_TIME_NONE &&
current_time > ogg->segment.stop) ||
- (ogg->segment.rate > 0.0 && ogg->segment.start != GST_CLOCK_TIME_NONE &&
+ (ogg->segment.rate < 0.0 && ogg->segment.start != GST_CLOCK_TIME_NONE &&
current_time < ogg->segment.start)) {
+ GST_DEBUG_OBJECT (ogg, "marking pad %p EOS", pad);
pad->is_eos = TRUE;
}
@@ -3172,6 +3173,7 @@ gst_ogg_demux_loop_forward (GstOggDemux * ogg)
/* check for the end of the segment */
if (gst_ogg_demux_check_eos (ogg)) {
+ GST_LOG_OBJECT (ogg, "got EOS");
ret = GST_FLOW_UNEXPECTED;
goto done;
}
@@ -3219,6 +3221,7 @@ gst_ogg_demux_loop_reverse (GstOggDemux * ogg)
/* check for the end of the segment */
if (gst_ogg_demux_check_eos (ogg)) {
+ GST_LOG_OBJECT (ogg, "got EOS");
ret = GST_FLOW_UNEXPECTED;
goto done;
}