mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-04 22:48:54 +00:00
check/generic/states.c: remove old property.
Original commit message from CVS: * check/generic/states.c: (GST_START_TEST): remove old property. * ext/ogg/gstoggdemux.c: (gst_ogg_pad_submit_packet), (gst_ogg_demux_perform_seek): * ext/theora/theoradec.c: (theora_dec_sink_event): * ext/vorbis/vorbisdec.c: (vorbis_dec_sink_event), (vorbis_handle_data_packet): * gst-libs/gst/rtp/gstbasertpdepayload.c: (gst_base_rtp_depayload_set_gst_timestamp): * gst/videorate/gstvideorate.c: (gst_videorate_event): Update for newsegment API change.
This commit is contained in:
parent
70b42a65cb
commit
f13f1c0b3b
8 changed files with 25 additions and 8 deletions
15
ChangeLog
15
ChangeLog
|
@ -1,3 +1,18 @@
|
|||
2005-10-11 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* check/generic/states.c: (GST_START_TEST):
|
||||
remove old property.
|
||||
|
||||
* ext/ogg/gstoggdemux.c: (gst_ogg_pad_submit_packet),
|
||||
(gst_ogg_demux_perform_seek):
|
||||
* ext/theora/theoradec.c: (theora_dec_sink_event):
|
||||
* ext/vorbis/vorbisdec.c: (vorbis_dec_sink_event),
|
||||
(vorbis_handle_data_packet):
|
||||
* gst-libs/gst/rtp/gstbasertpdepayload.c:
|
||||
(gst_base_rtp_depayload_set_gst_timestamp):
|
||||
* gst/videorate/gstvideorate.c: (gst_videorate_event):
|
||||
Update for newsegment API change.
|
||||
|
||||
2005-10-11 Michael Smith <msmith@fluendo.com>
|
||||
|
||||
* gst/playback/gstplaybin.c: (gst_play_bin_send_event_to_sink),
|
||||
|
|
|
@ -40,7 +40,6 @@ GST_START_TEST (test_state_changes)
|
|||
element = gst_element_factory_make (name, name);
|
||||
if (GST_IS_PIPELINE (element)) {
|
||||
GST_DEBUG ("element %s is a pipeline", name);
|
||||
g_object_set (G_OBJECT (element), "play-timeout", (guint64) 0, NULL);
|
||||
}
|
||||
|
||||
gst_element_set_state (element, GST_STATE_READY);
|
||||
|
|
|
@ -830,7 +830,7 @@ gst_ogg_pad_submit_packet (GstOggPad * pad, ogg_packet * packet)
|
|||
}
|
||||
|
||||
/* create the discont event we are going to send out */
|
||||
event = gst_event_new_newsegment (ogg->segment_rate,
|
||||
event = gst_event_new_newsegment (FALSE, ogg->segment_rate,
|
||||
GST_FORMAT_TIME, segment_start, segment_stop, 0);
|
||||
|
||||
gst_ogg_demux_activate_chain (ogg, chain, event);
|
||||
|
@ -1618,7 +1618,7 @@ gst_ogg_demux_perform_seek (GstOggDemux * ogg, gboolean accurate,
|
|||
gst_ogg_demux_send_event (ogg, gst_event_new_flush_stop ());
|
||||
|
||||
/* create the discont event we are going to send out */
|
||||
event = gst_event_new_newsegment (1.0,
|
||||
event = gst_event_new_newsegment (FALSE, 1.0,
|
||||
GST_FORMAT_TIME,
|
||||
start + chain->segment_start, stop + chain->segment_start, start);
|
||||
|
||||
|
|
|
@ -616,7 +616,8 @@ theora_dec_sink_event (GstPad * pad, GstEvent * event)
|
|||
gint64 start, stop, base;
|
||||
|
||||
GST_STREAM_LOCK (pad);
|
||||
gst_event_parse_newsegment (event, &rate, &format, &start, &stop, &base);
|
||||
gst_event_parse_newsegment (event, NULL, &rate, &format, &start, &stop,
|
||||
&base);
|
||||
|
||||
/* we need TIME and a positive rate */
|
||||
if (format != GST_FORMAT_TIME)
|
||||
|
|
|
@ -430,9 +430,11 @@ vorbis_dec_sink_event (GstPad * pad, GstEvent * event)
|
|||
GstFormat format;
|
||||
gdouble rate;
|
||||
gint64 start, stop, base;
|
||||
gboolean update;
|
||||
|
||||
GST_STREAM_LOCK (pad);
|
||||
gst_event_parse_newsegment (event, &rate, &format, &start, &stop, &base);
|
||||
gst_event_parse_newsegment (event, &update, &rate, &format, &start, &stop,
|
||||
&base);
|
||||
|
||||
if (format != GST_FORMAT_TIME)
|
||||
goto newseg_wrong_format;
|
||||
|
|
|
@ -332,7 +332,7 @@ gst_base_rtp_depayload_set_gst_timestamp (GstBaseRTPDepayload * filter,
|
|||
// if this is the first buf send a discont
|
||||
if (first) {
|
||||
// send discont
|
||||
GstEvent *event = gst_event_new_newsegment (1.0, GST_FORMAT_TIME,
|
||||
GstEvent *event = gst_event_new_newsegment (FALSE, 1.0, GST_FORMAT_TIME,
|
||||
ts, GST_CLOCK_TIME_NONE, 0);
|
||||
|
||||
gst_pad_push_event (filter->srcpad, event);
|
||||
|
|
|
@ -388,7 +388,8 @@ gst_videorate_event (GstPad * pad, GstEvent * event)
|
|||
|
||||
GST_STREAM_LOCK (pad);
|
||||
|
||||
gst_event_parse_newsegment (event, NULL, &format, &start, &stop, NULL);
|
||||
gst_event_parse_newsegment (event, NULL, NULL, &format, &start, &stop,
|
||||
NULL);
|
||||
|
||||
if (format != GST_FORMAT_TIME) {
|
||||
GST_WARNING ("Got discont but doesn't have GST_FORMAT_TIME value");
|
||||
|
|
|
@ -40,7 +40,6 @@ GST_START_TEST (test_state_changes)
|
|||
element = gst_element_factory_make (name, name);
|
||||
if (GST_IS_PIPELINE (element)) {
|
||||
GST_DEBUG ("element %s is a pipeline", name);
|
||||
g_object_set (G_OBJECT (element), "play-timeout", (guint64) 0, NULL);
|
||||
}
|
||||
|
||||
gst_element_set_state (element, GST_STATE_READY);
|
||||
|
|
Loading…
Reference in a new issue