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.
This commit is contained in:
Jan Schmidt 2008-10-08 11:20:17 +00:00
parent 2b9903f71a
commit 18e2042e28
2 changed files with 10 additions and 2 deletions

View file

@ -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.

View 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);