From 0e2c3ffc0befb6a2d4c6323fab53a08162f0f1d6 Mon Sep 17 00:00:00 2001 From: David Corvoysier Date: Tue, 16 Oct 2012 11:39:18 +0200 Subject: [PATCH] Try queries upstream if we cannot process them --- ext/dash/gstdashdemux.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c index 71348b7499..3736c5964e 100644 --- a/ext/dash/gstdashdemux.c +++ b/ext/dash/gstdashdemux.c @@ -764,11 +764,19 @@ gst_dash_demux_src_query (GstPad * pad, GstQuery * query) } break; } - default: - /* Don't fordward queries upstream because of the special nature of this - * "demuxer", which relies on the upstream element only to be fed with the - * manifest file */ + default:{ + GstPad *peer; + + if ((peer = gst_pad_get_peer (dashdemux->sinkpad))) { + /* Try to query upstream */ + ret = gst_pad_query (peer, query); + gst_object_unref (peer); + } else { + /* no peer, we don't know */ + ret = FALSE; + } break; + } } return ret;