mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
2b9903f71a
commit
18e2042e28
2 changed files with 10 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue