ext/mad/gstmad.c: allow seeking for other methods than just SET

Original commit message from CVS:
* ext/mad/gstmad.c: (normal_seek):
allow seeking for other methods than just SET
This commit is contained in:
Benjamin Otte 2004-07-11 19:27:43 +00:00
parent ebfe64cf9d
commit c85cc84f32
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2004-07-11 Benjamin Otte <otte@gnome.org>
* ext/mad/gstmad.c: (normal_seek):
allow seeking for other methods than just SET
2004-07-11 Andy Wingo <wingo@pobox.com>
* gst/audioconvert/gstaudioconvert.c (gst_audio_convert_link): For

View file

@ -712,7 +712,8 @@ normal_seek (GstMad * mad, GstPad * pad, GstEvent * event)
GstEvent *seek_event;
/* conversion succeeded, create the seek */
seek_event = gst_event_new_seek (format | GST_SEEK_METHOD_SET | flush,
seek_event =
gst_event_new_seek (format | GST_EVENT_SEEK_METHOD (event) | flush,
desired_offset);
/* do the seek */
if (gst_pad_send_event (GST_PAD_PEER (mad->sinkpad), seek_event)) {