gst/gstqueue.c: Check for availability again.
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>
Thu, 9 Dec 2004 16:13:18 +0000 (16:13 +0000)
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>
Thu, 9 Dec 2004 16:13:18 +0000 (16:13 +0000)
Original commit message from CVS:
* gst/gstqueue.c: (gst_queue_handle_src_query):
Check for availability again.

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

index c2116d7..1b7f7fa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2004-12-09  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
 
+       * gst/gstqueue.c: (gst_queue_handle_src_query):
+         Check for availability again.
+
+2004-12-09  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
+
        * gst/gstcaps.c: (gst_caps_compare_structures):
          Simple caps go first. This has the nice side-effect of fixing an
          obscure warning.
index 6e54087..17ee2cc 100644 (file)
@@ -913,6 +913,8 @@ gst_queue_handle_src_query (GstPad * pad,
   GstQueue *queue = GST_QUEUE (gst_pad_get_parent (pad));
   gboolean res;
 
+  if (!GST_PAD_PEER (queue->sinkpad))
+    return FALSE;
   res = gst_pad_query (GST_PAD_PEER (queue->sinkpad), type, fmt, value);
   if (!res)
     return FALSE;
index 6e54087..17ee2cc 100644 (file)
@@ -913,6 +913,8 @@ gst_queue_handle_src_query (GstPad * pad,
   GstQueue *queue = GST_QUEUE (gst_pad_get_parent (pad));
   gboolean res;
 
+  if (!GST_PAD_PEER (queue->sinkpad))
+    return FALSE;
   res = gst_pad_query (GST_PAD_PEER (queue->sinkpad), type, fmt, value);
   if (!res)
     return FALSE;