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:
Wonchul Lee 2014-11-14 10:55:14 +09:00 committed by Tim-Philipp Müller
parent d45a2f0480
commit aa2ecf5e53

View file

@ -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) {