plugins/elements/gstqueue.c: Allow through queries when we don't know how as otherwis...
authorJan Schmidt <thaytan@mad.scientist.com>
Wed, 8 Oct 2008 11:20:17 +0000 (11:20 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Wed, 8 Oct 2008 11:20:17 +0000 (11:20 +0000)
Original commit message from CVS:
* plugins/elements/gstqueue.c:
Allow through queries when we don't know how
to adjust them (not TIME or BYTES), as otherwise it's
not possible to query the current position in order
to seek in other formats at all.

ChangeLog
plugins/elements/gstqueue.c

index 43f0618..a021708 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-10-08  Jan Schmidt  <jan.schmidt@sun.com>
+
+       * plugins/elements/gstqueue.c:
+       Allow through queries when we don't know how
+       to adjust them (not TIME or BYTES), as otherwise it's
+       not possible to query the current position in order
+       to seek in other formats at all.
+
 2008-10-08  Andy Wingo  <wingo@pobox.com>
 
        * docs/gst/gstreamer-sections.txt: Placate doc pendants.
index c500c0b..4fd97fd 100644 (file)
@@ -1216,9 +1216,9 @@ gst_queue_handle_src_query (GstPad * pad, GstQuery * query)
           peer_pos -= queue->cur_level.time;
           break;
         default:
-          GST_WARNING_OBJECT (queue, "dropping query in %s format, don't "
+          GST_DEBUG_OBJECT (queue, "Can't adjust query in %s format, don't "
               "know how to adjust value", gst_format_get_name (format));
-          return FALSE;
+          return TRUE;
       }
       /* set updated position */
       gst_query_set_position (query, format, peer_pos);