mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
gst/mpegstream/gstmpegparse.c (gst_mpeg_parse_process_event): Erase spurious call to gst_segment_set_newsegment.
Original commit message from CVS: 2006-01-22 Martin Soto <martinsoto@users.sourceforge.net> * gst/mpegstream/gstmpegparse.c (gst_mpeg_parse_process_event): Erase spurious call to gst_segment_set_newsegment. * gst/mpegstream/gstdvddemux.c (gst_dvd_demux_process_event): Call the superclass method when handling NEWSEGMENT events. (gst_dvd_demux_handle_dvd_event): Get rid of dvd-audio-shutdown and dvd-audio-restart event handling. There are currently less hackish ways of handling the sparse audio stream problem.
This commit is contained in:
parent
e8805d7869
commit
ba4f177426
4 changed files with 13 additions and 20 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
2006-01-22 Martin Soto <martinsoto@users.sourceforge.net>
|
||||
|
||||
* gst/mpegstream/gstmpegparse.c (gst_mpeg_parse_process_event):
|
||||
Erase spurious call to gst_segment_set_newsegment.
|
||||
* gst/mpegstream/gstdvddemux.c (gst_dvd_demux_process_event): Call
|
||||
the superclass method when handling NEWSEGMENT events.
|
||||
(gst_dvd_demux_handle_dvd_event): Get rid of dvd-audio-shutdown
|
||||
and dvd-audio-restart event handling. There are currently less
|
||||
hackish ways of handling the sparse audio stream problem.
|
||||
|
||||
2006-01-20 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* ext/dvdnav/dvdnavsrc.c: (if):
|
||||
|
|
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit e0b121388ece524c0b7035a72bddd191d122d8bf
|
||||
Subproject commit bc4325349e8d0ec90aa5c5e74566880cc2e82527
|
|
@ -318,6 +318,8 @@ gst_dvd_demux_process_event (GstMPEGParse * mpeg_parse, GstEvent * event)
|
|||
dvd_demux->segment_filter = TRUE;
|
||||
}
|
||||
|
||||
ret = GST_MPEG_PARSE_CLASS (parent_class)->process_event (mpeg_parse,
|
||||
event);
|
||||
break;
|
||||
}
|
||||
case GST_EVENT_FLUSH_STOP:
|
||||
|
@ -374,23 +376,6 @@ gst_dvd_demux_handle_dvd_event (GstDVDDemux * dvd_demux, GstEvent * event)
|
|||
}
|
||||
gst_dvd_demux_set_cur_audio (dvd_demux, stream_nr);
|
||||
gst_event_unref (event);
|
||||
} else if (strcmp (event_type, "dvd-audio-shutdown") == 0) {
|
||||
/* Send an EOS down the audio path to effectively shut it down and
|
||||
allow for preroll in the absence of audio material. */
|
||||
gst_event_unref (event);
|
||||
return gst_pad_push_event (dvd_demux->cur_audio, gst_event_new_eos ());
|
||||
} else if (strcmp (event_type, "dvd-audio-restart") == 0) {
|
||||
/* Restart the audio pipeline after an EOS by flushing it. */
|
||||
gst_event_unref (event);
|
||||
if (!gst_pad_push_event (dvd_demux->cur_audio,
|
||||
gst_event_new_flush_start ())) {
|
||||
return FALSE;
|
||||
}
|
||||
if (!gst_pad_push_event (dvd_demux->cur_audio, gst_event_new_flush_stop ())) {
|
||||
return FALSE;
|
||||
}
|
||||
dvd_demux->segment_filter = TRUE;
|
||||
return TRUE;
|
||||
} else if (strcmp (event_type, "dvd-spu-stream-change") == 0) {
|
||||
gint stream_nr;
|
||||
|
||||
|
|
|
@ -375,8 +375,6 @@ gst_mpeg_parse_process_event (GstMPEGParse * mpeg_parse, GstEvent * event)
|
|||
"Updating current segment with newsegment");
|
||||
gst_segment_set_newsegment (&mpeg_parse->current_segment,
|
||||
update, rate, format, start, stop, time);
|
||||
gst_segment_set_newsegment (&mpeg_parse->current_segment,
|
||||
update, rate, format, start, stop, time);
|
||||
|
||||
if (!update) {
|
||||
/* Send a newsegment event for the new current segment. */
|
||||
|
|
Loading…
Reference in a new issue