From 592fbfb043ae47f70e4199a8ee14fbb2ad9a3767 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 4 Jul 2013 20:39:26 -0400 Subject: [PATCH] basesrc: Do not lock a mutex that does not exist The GST_LIVE_LOCK is on GstBaseSrc, not on its source pad. --- libs/gst/base/gstbasesrc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/gst/base/gstbasesrc.c b/libs/gst/base/gstbasesrc.c index 9a18826974..d04b513b2b 100644 --- a/libs/gst/base/gstbasesrc.c +++ b/libs/gst/base/gstbasesrc.c @@ -1706,13 +1706,13 @@ gst_base_src_send_event (GstElement * element, GstEvent * event) event = NULL; break; case GST_EVENT_FLUSH_STOP: - GST_LIVE_LOCK (src->srcpad); + GST_LIVE_LOCK (src); src->priv->segment_pending = TRUE; /* sending random flushes downstream can break stuff, * especially sync since all segment info will get flushed */ GST_DEBUG_OBJECT (src, "pushing flush-stop event downstream"); result = gst_pad_push_event (src->srcpad, event); - GST_LIVE_UNLOCK (src->srcpad); + GST_LIVE_UNLOCK (src); event = NULL; break;