basesrc: Do not lock a mutex that does not exist
authorThibault Saunier <thibault.saunier@collabora.com>
Fri, 5 Jul 2013 00:39:26 +0000 (20:39 -0400)
committerThibault Saunier <thibault.saunier@collabora.com>
Fri, 5 Jul 2013 00:56:19 +0000 (20:56 -0400)
The GST_LIVE_LOCK is on GstBaseSrc, not on its source pad.

libs/gst/base/gstbasesrc.c

index db7c895..a692b6f 100644 (file)
@@ -1709,13 +1709,13 @@ gst_base_src_send_event (GstElement * element, GstEvent * event)
       event = NULL;
       break;
     case GST_EVENT_FLUSH_STOP:
       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);
       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;
 
       event = NULL;
       break;