You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.2 KiB
42 lines
1.2 KiB
From dddfe1a890dfdadc94dbc07f2cc380c56fc54971 Mon Sep 17 00:00:00 2001
|
|
From: zhouming <b42586@freescale.com>
|
|
Date: Wed, 14 May 2014 10:16:20 +0800
|
|
Subject: [PATCH] ENGR00312515: get caps from src pad when query caps
|
|
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=728312
|
|
|
|
Upstream-Status: Pending
|
|
|
|
Signed-off-by: zhouming <b42586@freescale.com>
|
|
|
|
---
|
|
gst-libs/gst/tag/gsttagdemux.c | 13 +++++++++++++
|
|
1 file changed, 13 insertions(+)
|
|
mode change 100644 => 100755 gst-libs/gst/tag/gsttagdemux.c
|
|
|
|
diff --git a/gst-libs/gst/tag/gsttagdemux.c b/gst-libs/gst/tag/gsttagdemux.c
|
|
old mode 100644
|
|
new mode 100755
|
|
index 8a127c8..71c5d78
|
|
--- a/gst-libs/gst/tag/gsttagdemux.c
|
|
+++ b/gst-libs/gst/tag/gsttagdemux.c
|
|
@@ -1767,6 +1767,19 @@ gst_tag_demux_pad_query (GstPad * pad, GstObject * parent, GstQuery * query)
|
|
}
|
|
break;
|
|
}
|
|
+ case GST_QUERY_CAPS:
|
|
+ {
|
|
+
|
|
+ /* We can hijack caps query if we typefind already */
|
|
+ if (demux->priv->src_caps) {
|
|
+ gst_query_set_caps_result (query, demux->priv->src_caps);
|
|
+ res = TRUE;
|
|
+ } else {
|
|
+ res = gst_pad_query_default (pad, parent, query);
|
|
+ }
|
|
+ break;
|
|
+ }
|
|
+
|
|
default:
|
|
res = gst_pad_query_default (pad, parent, query);
|
|
break;
|
|
|