Andrew Geissler | 6ce62a2 | 2020-11-30 19:58:47 -0600 | [diff] [blame] | 1 | From f9d48cd85ee68207733b1b91a00453462c33524a Mon Sep 17 00:00:00 2001 |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 2 | From: zhouming <b42586@freescale.com> |
| 3 | Date: Wed, 14 May 2014 10:16:20 +0800 |
Andrew Geissler | 6ce62a2 | 2020-11-30 19:58:47 -0600 | [diff] [blame] | 4 | Subject: [PATCH 1/4] ENGR00312515: get caps from src pad when query caps |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 5 | |
| 6 | https://bugzilla.gnome.org/show_bug.cgi?id=728312 |
| 7 | |
| 8 | Upstream-Status: Pending |
| 9 | |
| 10 | Signed-off-by: zhouming <b42586@freescale.com> |
| 11 | --- |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 12 | gst-libs/gst/tag/gsttagdemux.c | 13 +++++++++++++ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 13 | 1 file changed, 13 insertions(+) |
| 14 | mode change 100644 => 100755 gst-libs/gst/tag/gsttagdemux.c |
| 15 | |
| 16 | diff --git a/gst-libs/gst/tag/gsttagdemux.c b/gst-libs/gst/tag/gsttagdemux.c |
| 17 | old mode 100644 |
| 18 | new mode 100755 |
Andrew Geissler | 6ce62a2 | 2020-11-30 19:58:47 -0600 | [diff] [blame] | 19 | index f545857..62d10ef |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 20 | --- a/gst-libs/gst/tag/gsttagdemux.c |
| 21 | +++ b/gst-libs/gst/tag/gsttagdemux.c |
Andrew Geissler | 6ce62a2 | 2020-11-30 19:58:47 -0600 | [diff] [blame] | 22 | @@ -1777,6 +1777,19 @@ gst_tag_demux_pad_query (GstPad * pad, GstObject * parent, GstQuery * query) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 23 | } |
| 24 | break; |
| 25 | } |
| 26 | + case GST_QUERY_CAPS: |
| 27 | + { |
| 28 | + |
| 29 | + /* We can hijack caps query if we typefind already */ |
| 30 | + if (demux->priv->src_caps) { |
| 31 | + gst_query_set_caps_result (query, demux->priv->src_caps); |
| 32 | + res = TRUE; |
| 33 | + } else { |
| 34 | + res = gst_pad_query_default (pad, parent, query); |
| 35 | + } |
| 36 | + break; |
| 37 | + } |
| 38 | + |
| 39 | default: |
| 40 | res = gst_pad_query_default (pad, parent, query); |
| 41 | break; |
Andrew Geissler | 6ce62a2 | 2020-11-30 19:58:47 -0600 | [diff] [blame] | 42 | -- |
| 43 | 2.28.0 |
| 44 | |