mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
rawparse: send SEEKING query upstream first
Sometimes rawparse does not handle the seeking query properly, the rawparse should send the query upstream first. For example, upstream could support seeking in TIME format (but not in BYTE format), so the BYTE format seeking query that rawparse sends in push mode would fail. https://bugzilla.gnome.org/show_bug.cgi?id=722764
This commit is contained in:
parent
d45a2f0480
commit
aa2ecf5e53
1 changed files with 5 additions and 0 deletions
|
@ -1007,6 +1007,11 @@ gst_raw_parse_src_query (GstPad * pad, GstObject * parent, GstQuery * query)
|
|||
GstFormat fmt;
|
||||
|
||||
ret = TRUE;
|
||||
|
||||
/* try upstream first */
|
||||
if (gst_pad_peer_query (rp->sinkpad, query))
|
||||
break;
|
||||
|
||||
gst_query_parse_seeking (query, &fmt, NULL, NULL, NULL);
|
||||
if (fmt != GST_FORMAT_TIME && fmt != GST_FORMAT_DEFAULT
|
||||
&& fmt != GST_FORMAT_BYTES) {
|
||||
|
|
Loading…
Reference in a new issue