From ed15b309307b5fe907c34053f5035183b7d9ec68 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 27 Aug 2014 11:01:01 +0300 Subject: [PATCH] concat: Allow seeking on the currently playing stream This is consistent with the stream time reporting. --- plugins/elements/gstconcat.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/plugins/elements/gstconcat.c b/plugins/elements/gstconcat.c index 919163d..340a2d1 100644 --- a/plugins/elements/gstconcat.c +++ b/plugins/elements/gstconcat.c @@ -563,9 +563,19 @@ gst_concat_src_event (GstPad * pad, GstObject * parent, GstEvent * event) switch (GST_EVENT_TYPE (event)) { case GST_EVENT_SEEK:{ - /* We don't support seeking */ - gst_event_unref (event); - ret = FALSE; + GstPad *sinkpad = NULL; + + g_mutex_lock (&self->lock); + if ((sinkpad = self->current_sinkpad)) + gst_object_ref (sinkpad); + g_mutex_unlock (&self->lock); + if (sinkpad) { + ret = gst_pad_push_event (sinkpad, event); + gst_object_unref (sinkpad); + } else { + gst_event_unref (event); + ret = FALSE; + } break; } case GST_EVENT_QOS:{ -- 2.7.4