baseparse: fix reverse playback
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Mon, 13 Feb 2012 17:09:51 +0000 (18:09 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 15 Feb 2012 12:41:49 +0000 (12:41 +0000)
... especially for all-keyframe (audio) cases.

libs/gst/base/gstbaseparse.c

index 2df84c852946cde0ceb6e8c849fe1dababca90be..1da663cde61fd6c3388fdc1a5f9bb0bb4dc2113d 100644 (file)
@@ -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 =