summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <edward@collabora.com>2012-09-25 14:22:54 +0200
committerEdward Hervey <edward@collabora.com>2012-09-25 14:22:54 +0200
commit5830605de4277b389e07e9215db57fa620a9d1a0 (patch)
tree1a6fba147e4a2a8e0d413ffd3ce761a7babcc1ea
parentff492bbe864b8a56b0cd2ce63d7a4879588ef9f6 (diff)
composition: Ensure seeks always have flush/accurate
Otherwise we will never be able to unblock upstream elements
-rw-r--r--gnl/gnlcomposition.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gnl/gnlcomposition.c b/gnl/gnlcomposition.c
index 8de15ca..c04d0c8 100644
--- a/gnl/gnlcomposition.c
+++ b/gnl/gnlcomposition.c
@@ -840,17 +840,15 @@ static GstEvent *
get_new_seek_event (GnlComposition * comp, gboolean initial,
gboolean updatestoponly)
{
- GstSeekFlags flags;
+ GstSeekFlags flags = GST_SEEK_FLAG_ACCURATE | GST_SEEK_FLAG_FLUSH;
gint64 start, stop;
GstSeekType starttype = GST_SEEK_TYPE_SET;
GnlCompositionPrivate *priv = comp->priv;
GST_DEBUG_OBJECT (comp, "initial:%d", initial);
/* remove the seek flag */
- if (!(initial))
- flags = (GstSeekFlags) priv->segment->flags;
- else
- flags = GST_SEEK_FLAG_ACCURATE | GST_SEEK_FLAG_FLUSH;
+ if (!initial)
+ flags |= (GstSeekFlags) priv->segment->flags;
GST_DEBUG_OBJECT (comp,
"private->segment->start:%" GST_TIME_FORMAT " segment_start%"