From: Tim-Philipp Müller Date: Tue, 22 Nov 2005 18:39:36 +0000 (+0000) Subject: ext/mad/gstmad.c: Fix seeking even more by sending the newsegment event with the... X-Git-Tag: 1.19.3~505^2~2110 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1d09aeb36dcf5c7088c8a0b272a9ff11c071ec74;p=platform%2Fupstream%2Fgstreamer.git 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. --- diff --git a/ChangeLog b/ChangeLog index d9692c3..274c528 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2005-11-22 Tim-Philipp Müller + * 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 + * ext/mad/gstmad.c: (gst_mad_mode_get_type), (gst_mad_src_query), (normal_seek), (gst_mad_sink_event), (gst_mad_chain): Fix seeking in stand-alone mode. Fix nonexistant enum value diff --git a/ext/mad/gstmad.c b/ext/mad/gstmad.c index e1a1cd0..e1d45cc 100644 --- a/ext/mad/gstmad.c +++ b/ext/mad/gstmad.c @@ -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; } }