mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
ext/mad/gstmad.c: Fix seeking even more by sending the newsegment event with the right parameters. Should fix queryin...
Original commit message from CVS: * ext/mad/gstmad.c: (gst_mad_chain): Fix seeking even more by sending the newsegment event with the right parameters. Should fix querying in playbin/totem after a seek.
This commit is contained in:
parent
750f0f9d13
commit
1d09aeb36d
2 changed files with 14 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
|||
2005-11-22 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* ext/mad/gstmad.c: (gst_mad_chain):
|
||||
Fix seeking even more by sending the newsegment event with the
|
||||
right parameters. Should fix querying in playbin/totem after
|
||||
a seek.
|
||||
|
||||
2005-11-22 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* ext/mad/gstmad.c: (gst_mad_mode_get_type), (gst_mad_src_query),
|
||||
|
|
|
@ -1533,14 +1533,19 @@ gst_mad_chain (GstPad * pad, GstBuffer * buffer)
|
|||
}
|
||||
|
||||
if (do_send_discont) {
|
||||
gint64 start = GST_BUFFER_TIMESTAMP (outbuffer);
|
||||
|
||||
GST_DEBUG ("Sending NEWSEGMENT event, start=%" GST_TIME_FORMAT,
|
||||
GST_TIME_ARGS (start));
|
||||
|
||||
gst_pad_push_event (mad->srcpad,
|
||||
gst_event_new_new_segment (FALSE, 1.0, GST_FORMAT_TIME,
|
||||
GST_BUFFER_TIMESTAMP (outbuffer), GST_CLOCK_TIME_NONE, 0));
|
||||
start, GST_CLOCK_TIME_NONE, start));
|
||||
do_send_discont = FALSE;
|
||||
}
|
||||
|
||||
result = gst_pad_push (mad->srcpad, outbuffer);
|
||||
if (result != GST_FLOW_OK) {
|
||||
if (result != GST_FLOW_OK && result != GST_FLOW_NOT_LINKED) {
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue