From b93a9176db8b1d9c54d2cef3e4d672f1202b7d3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 12 Jan 2007 18:08:23 +0000 Subject: [PATCH] gst-libs/gst/utils/missing-plugins.c: Remove more fields so that the application can better blacklist formats that ha... Original commit message from CVS: * gst-libs/gst/utils/missing-plugins.c: (copy_and_clean_caps): Remove more fields so that the application can better blacklist formats that have been tried before. --- ChangeLog | 6 ++++++ gst-libs/gst/pbutils/missing-plugins.c | 10 +++++++++- gst-libs/gst/utils/missing-plugins.c | 10 +++++++++- 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e54ca37ede..a95a79d5f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-01-12 Tim-Philipp Müller + + * gst-libs/gst/utils/missing-plugins.c: (copy_and_clean_caps): + Remove more fields so that the application can better blacklist + formats that have been tried before. + 2007-01-12 Tim-Philipp Müller * gst-libs/gst/audio/mixerutils.h: diff --git a/gst-libs/gst/pbutils/missing-plugins.c b/gst-libs/gst/pbutils/missing-plugins.c index aa6581a8bb..bada28e9e3 100644 --- a/gst-libs/gst/pbutils/missing-plugins.c +++ b/gst-libs/gst/pbutils/missing-plugins.c @@ -95,7 +95,15 @@ copy_and_clean_caps (const GstCaps * caps) gst_structure_remove_field (s, "palette_data"); gst_structure_remove_field (s, "pixel-aspect-ratio"); gst_structure_remove_field (s, "framerate"); - /* maybe remove width/height too? */ + gst_structure_remove_field (s, "leaf_size"); + gst_structure_remove_field (s, "packet_size"); + /* decoders/encoders almost always handle the usual width/height/channel/rate + * range (and if we don't remove this then the app will have a much harder + * time blacklisting formats it has unsuccessfully tried to install before) */ + gst_structure_remove_field (s, "width"); + gst_structure_remove_field (s, "height"); + gst_structure_remove_field (s, "channels"); + gst_structure_remove_field (s, "rate"); return ret; } diff --git a/gst-libs/gst/utils/missing-plugins.c b/gst-libs/gst/utils/missing-plugins.c index aa6581a8bb..bada28e9e3 100644 --- a/gst-libs/gst/utils/missing-plugins.c +++ b/gst-libs/gst/utils/missing-plugins.c @@ -95,7 +95,15 @@ copy_and_clean_caps (const GstCaps * caps) gst_structure_remove_field (s, "palette_data"); gst_structure_remove_field (s, "pixel-aspect-ratio"); gst_structure_remove_field (s, "framerate"); - /* maybe remove width/height too? */ + gst_structure_remove_field (s, "leaf_size"); + gst_structure_remove_field (s, "packet_size"); + /* decoders/encoders almost always handle the usual width/height/channel/rate + * range (and if we don't remove this then the app will have a much harder + * time blacklisting formats it has unsuccessfully tried to install before) */ + gst_structure_remove_field (s, "width"); + gst_structure_remove_field (s, "height"); + gst_structure_remove_field (s, "channels"); + gst_structure_remove_field (s, "rate"); return ret; }