tests/examples/seek/seek.c: Add some seek flags when changing rate.

Original commit message from CVS:
2008-02-12  Julien Moutte  <julien@fluendo.com>

* tests/examples/seek/seek.c: (rate_spinbutton_changed_cb): Add
some seek flags when changing rate.
This commit is contained in:
Julien Moutte 2008-02-12 19:50:36 +00:00
parent d8c28a99c8
commit 37df642086
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2008-02-12 Julien Moutte <julien@fluendo.com>
* tests/examples/seek/seek.c: (rate_spinbutton_changed_cb): Add
some seek flags when changing rate.
2008-02-12 Wim Taymans <wim.taymans@collabora.co.uk>
* gst-libs/gst/rtp/gstbasertpaudiopayload.c:

View file

@ -1441,6 +1441,10 @@ rate_spinbutton_changed_cb (GtkSpinButton * button, GstPipeline * pipeline)
flags |= GST_SEEK_FLAG_FLUSH;
if (loop_seek)
flags |= GST_SEEK_FLAG_SEGMENT;
if (accurate_seek)
flags |= GST_SEEK_FLAG_ACCURATE;
if (keyframe_seek)
flags |= GST_SEEK_FLAG_KEY_UNIT;
if (rate >= 0) {
s_event = gst_event_new_seek (rate,