From 5cb7dc6e34166ae627721a893885080571856dd0 Mon Sep 17 00:00:00 2001 From: Wonchul Lee Date: Fri, 14 Nov 2014 10:55:14 +0900 Subject: 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 eff74dcbf..e8c9fec5f 100644 --- a/gst/rawparse/gstrawparse.c +++ b/gst/rawparse/gstrawparse.c @@ -1011,6 +1011,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) { -- cgit v1.2.1