summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@mad.scientist.com>2005-04-15 19:35:09 +0000
committerJan Schmidt <thaytan@mad.scientist.com>2005-04-15 19:35:09 +0000
commite9905a27ea2cf439365284e4d9fb281c2a3ce0a4 (patch)
tree62705b5d9603857756a700c974c75a35482bec4d
parentc5b0a7bd863d22c073bf2ba3b2fa1a4e576d9591 (diff)
downloadgst-plugins-bad-e9905a27ea2cf439365284e4d9fb281c2a3ce0a4.tar.gz
gst-plugins-bad-e9905a27ea2cf439365284e4d9fb281c2a3ce0a4.tar.bz2
gst-plugins-bad-e9905a27ea2cf439365284e4d9fb281c2a3ce0a4.zip
ext/: Take filler handling back out. Decoders shouldn't need to.
Original commit message from CVS: * ext/a52dec/gsta52dec.c: (gst_a52dec_handle_event): * ext/dts/gstdtsdec.c: (gst_dtsdec_handle_event): Take filler handling back out. Decoders shouldn't need to. * gst/mpegstream/gstdvddemux.c: (gst_dvd_demux_handle_dvd_event), (gst_dvd_demux_handle_discont): * gst/mpegstream/gstmpegdemux.c: (gst_mpeg_demux_send_discont), (gst_mpeg_demux_init_stream), (gst_mpeg_demux_send_subbuffer), (gst_mpeg_demux_synchronise_pads), (gst_mpeg_demux_sync_stream_to_time): * gst/mpegstream/gstmpegdemux.h: * gst/mpegstream/gstmpegparse.c: (gst_mpeg_parse_parse_packhead): Use a combination of SCR and PTS to detect when a pad needs filler events. Fix discont handling so seeking works.
-rw-r--r--ChangeLog18
-rw-r--r--ext/dts/gstdtsdec.c21
2 files changed, 18 insertions, 21 deletions
diff --git a/ChangeLog b/ChangeLog
index 97ba2087..5d9eeb69 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+2005-04-16 Jan Schmidt,,, <thaytan@mad.scientist.com>
+
+ * ext/a52dec/gsta52dec.c: (gst_a52dec_handle_event):
+ * ext/dts/gstdtsdec.c: (gst_dtsdec_handle_event):
+ Take filler handling back out. Decoders shouldn't need to.
+
+ * gst/mpegstream/gstdvddemux.c: (gst_dvd_demux_handle_dvd_event),
+ (gst_dvd_demux_handle_discont):
+ * gst/mpegstream/gstmpegdemux.c: (gst_mpeg_demux_send_discont),
+ (gst_mpeg_demux_init_stream), (gst_mpeg_demux_send_subbuffer),
+ (gst_mpeg_demux_synchronise_pads),
+ (gst_mpeg_demux_sync_stream_to_time):
+ * gst/mpegstream/gstmpegdemux.h:
+ * gst/mpegstream/gstmpegparse.c: (gst_mpeg_parse_parse_packhead):
+ Use a combination of SCR and PTS to detect when a pad needs filler
+ events.
+ Fix discont handling so seeking works.
+
2005-04-15 Thomas Vander Stichele <thomas at apestaart dot org>
* ext/raw1394/gstdv1394src.c:
diff --git a/ext/dts/gstdtsdec.c b/ext/dts/gstdtsdec.c
index b6e526e5..0b9aeae5 100644
--- a/ext/dts/gstdtsdec.c
+++ b/ext/dts/gstdtsdec.c
@@ -333,27 +333,6 @@ gst_dtsdec_handle_event (GstDtsDec * dts, GstEvent * event)
dts->cache = NULL;
}
break;
- case GST_EVENT_FILLER:{
- /* Transform filler to always have timestamp + duration */
- GstClockTime end_ts = GST_EVENT_TIMESTAMP (event);
- GstClockTime dur = gst_event_filler_get_duration (event);
-
- if (!GST_CLOCK_TIME_IS_VALID (end_ts))
- end_ts = dts->current_ts;
-
- if (GST_CLOCK_TIME_IS_VALID (dur))
- end_ts += dur;
-
- dur = GST_CLOCK_DIFF (end_ts, dts->current_ts);
-
- gst_event_unref (event);
-
- if (dur <= 0)
- return;
-
- event = gst_event_new_filler_stamped (dts->current_ts, dur);
- dts->current_ts = end_ts;
- }
default:
break;