diff options
author | Jan Schmidt <thaytan@mad.scientist.com> | 2005-04-15 19:35:09 +0000 |
---|---|---|
committer | Jan Schmidt <thaytan@mad.scientist.com> | 2005-04-15 19:35:09 +0000 |
commit | e9905a27ea2cf439365284e4d9fb281c2a3ce0a4 (patch) | |
tree | 62705b5d9603857756a700c974c75a35482bec4d /ext | |
parent | c5b0a7bd863d22c073bf2ba3b2fa1a4e576d9591 (diff) | |
download | gst-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.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/dts/gstdtsdec.c | 21 |
1 files changed, 0 insertions, 21 deletions
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; |