From 18e2042e28050c1993ad558b56c4dbc19292f31e Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Wed, 8 Oct 2008 11:20:17 +0000 Subject: [PATCH] plugins/elements/gstqueue.c: Allow through queries when we don't know how as otherwise it's not possible to query the... 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 | 8 ++++++++ plugins/elements/gstqueue.c | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 43f0618..a021708 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-10-08 Jan Schmidt + + * 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 * docs/gst/gstreamer-sections.txt: Placate doc pendants. diff --git a/plugins/elements/gstqueue.c b/plugins/elements/gstqueue.c index c500c0b..4fd97fd 100644 --- a/plugins/elements/gstqueue.c +++ b/plugins/elements/gstqueue.c @@ -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); -- 2.7.4