From e9905a27ea2cf439365284e4d9fb281c2a3ce0a4 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 15 Apr 2005 19:35:09 +0000 Subject: 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. --- ChangeLog | 18 ++++++++++++++++++ ext/dts/gstdtsdec.c | 21 --------------------- 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,,, + + * 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 * 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; -- cgit v1.2.1