From aa2ecf5e53837f059c79330121aa305e843dc9bb Mon Sep 17 00:00:00 2001 From: Wonchul Lee Date: Fri, 14 Nov 2014 10:55:14 +0900 Subject: [PATCH] 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 --- gst/rawparse/gstrawparse.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst/rawparse/gstrawparse.c b/gst/rawparse/gstrawparse.c index bdb3190f85..ad2607b604 100644 --- a/gst/rawparse/gstrawparse.c +++ b/gst/rawparse/gstrawparse.c @@ -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) {