unlock the queue
authorWim Taymans <wim.taymans@gmail.com>
Sun, 2 Jun 2002 11:51:26 +0000 (11:51 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Sun, 2 Jun 2002 11:51:26 +0000 (11:51 +0000)
Original commit message from CVS:
unlock the queue

gst/gstqueue.c
plugins/elements/gstqueue.c

index 549d889..9cfd917 100644 (file)
@@ -529,7 +529,9 @@ gst_queue_handle_src_event (GstPad *pad, GstEvent *event)
   g_mutex_lock (queue->qlock);
 
   if (gst_element_get_state (GST_ELEMENT (queue)) == GST_STATE_PLAYING) {
+    g_mutex_unlock (queue->qlock);
     g_warning ("queue event in playing state");
+    return FALSE;
   }
 
   switch (GST_EVENT_TYPE (event)) {
index 549d889..9cfd917 100644 (file)
@@ -529,7 +529,9 @@ gst_queue_handle_src_event (GstPad *pad, GstEvent *event)
   g_mutex_lock (queue->qlock);
 
   if (gst_element_get_state (GST_ELEMENT (queue)) == GST_STATE_PLAYING) {
+    g_mutex_unlock (queue->qlock);
     g_warning ("queue event in playing state");
+    return FALSE;
   }
 
   switch (GST_EVENT_TYPE (event)) {