summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-07-08 15:45:25 +0300
committerSebastian Dröge <sebastian@centricular.com>2016-07-25 13:19:18 +0300
commit2117812c7d772879d975b887463e2220daf14cd5 (patch)
treee5531d893c7d6ba10e55e3855c30e2078b6614c5
parent65440cb3fd156de2269354c5ba7942d02b68bd35 (diff)
downloadgstreamer-plugins-base-2117812c7d772879d975b887463e2220daf14cd5.tar.gz
missing-plugins: Remove some other fields when cleaning up caps
Caps are cleaned up for missing plugins, and for creating encoding profiles and caps descriptions. Fields like streamheader, parsed, framed, stream-format and alignment are not relevant here. The last ones all because a parser will take care of them. https://bugzilla.gnome.org/show_bug.cgi?id=768566
-rw-r--r--gst-libs/gst/pbutils/missing-plugins.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gst-libs/gst/pbutils/missing-plugins.c b/gst-libs/gst/pbutils/missing-plugins.c
index 4cf92916f..1228896b0 100644
--- a/gst-libs/gst/pbutils/missing-plugins.c
+++ b/gst-libs/gst/pbutils/missing-plugins.c
@@ -126,6 +126,7 @@ copy_and_clean_caps (const GstCaps * caps)
* where template caps usually have the standard MIN - MAX range as value) */
s = gst_caps_get_structure (ret, 0);
gst_structure_remove_field (s, "codec_data");
+ gst_structure_remove_field (s, "streamheader");
gst_structure_remove_field (s, "palette_data");
gst_structure_remove_field (s, "pixel-aspect-ratio");
gst_structure_remove_field (s, "framerate");
@@ -141,6 +142,12 @@ copy_and_clean_caps (const GstCaps * caps)
gst_structure_remove_field (s, "height");
gst_structure_remove_field (s, "channels");
gst_structure_remove_field (s, "rate");
+ /* parsed, framed, stream-format and alignment are going to be handled by
+ * parsers and not relevant for decoders/encoders usually */
+ gst_structure_remove_field (s, "parsed");
+ gst_structure_remove_field (s, "framed");
+ gst_structure_remove_field (s, "stream-format");
+ gst_structure_remove_field (s, "alignment");
/* rtp fields */
gst_structure_remove_field (s, "config");
gst_structure_remove_field (s, "clock-rate");