From d5fbc905e347c0a5a8810d7e2573bfebcba7629c Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Wed, 8 Feb 2017 11:42:45 -0300 Subject: [PATCH] discoverer: Ignore more parser related fields when comparing streams The parser might do some conversion on a stream but the stream keeps being the same, and we need to make sure GstDiscoverer detects it is the case. https://bugzilla.gnome.org/show_bug.cgi?id=778298 --- gst-libs/gst/pbutils/gstdiscoverer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst-libs/gst/pbutils/gstdiscoverer.c b/gst-libs/gst/pbutils/gstdiscoverer.c index 96fa397..090e39a 100644 --- a/gst-libs/gst/pbutils/gstdiscoverer.c +++ b/gst-libs/gst/pbutils/gstdiscoverer.c @@ -1070,6 +1070,10 @@ child_is_same_stream (const GstCaps * _parent, const GstCaps * child) for (i = 0; i < size; i++) { gst_structure_remove_field (gst_caps_get_structure (parent, i), "parsed"); gst_structure_remove_field (gst_caps_get_structure (parent, i), "framed"); + gst_structure_remove_field (gst_caps_get_structure (parent, i), + "stream-format"); + gst_structure_remove_field (gst_caps_get_structure (parent, i), + "alignment"); } res = gst_caps_can_intersect (parent, child); gst_caps_unref (parent); -- 2.7.4