gstreamer: baseparse: fix reverse playback

Mark Nauwelaerts mnauw at kemper.freedesktop.org
Mon Feb 13 09:16:54 PST 2012


Module: gstreamer
Branch: master
Commit: c8ea9994aa5b0bbd0869e2cdb98db73787928025
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=c8ea9994aa5b0bbd0869e2cdb98db73787928025

Author: Mark Nauwelaerts <mark.nauwelaerts at collabora.co.uk>
Date:   Mon Feb 13 18:09:51 2012 +0100

baseparse: fix reverse playback

... especially for all-keyframe (audio) cases.

---

 libs/gst/base/gstbaseparse.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/libs/gst/base/gstbaseparse.c b/libs/gst/base/gstbaseparse.c
index 5a730fd..34a5ae7 100644
--- a/libs/gst/base/gstbaseparse.c
+++ b/libs/gst/base/gstbaseparse.c
@@ -2181,12 +2181,11 @@ push:
         }
         seen_key = FALSE;
       }
-    } else {
       seen_delta = TRUE;
+    } else {
+      seen_key = TRUE;
     }
 
-    seen_key |= !GST_BUFFER_FLAG_IS_SET (buf, GST_BUFFER_FLAG_DELTA_UNIT);
-
     parse->priv->buffers_send =
         g_slist_prepend (parse->priv->buffers_send, buf);
     parse->priv->buffers_queued =



More information about the gstreamer-commits mailing list