From: <tp...@ke...> - 2007-01-12 18:08:38
|
CVS Root: /cvs/gstreamer Module: gst-plugins-base Changes by: tpm Date: Fri Jan 12 2007 18:08:35 UTC Log message: * 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. Modified files: . : ChangeLog gst-libs/gst/utils: missing-plugins.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/ChangeLog.diff?r1=1.3082&r2=1.3083 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst-libs/gst/utils/missing-plugins.c.diff?r1=1.1&r2=1.2 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gst-plugins-base/ChangeLog,v retrieving revision 1.3082 retrieving revision 1.3083 diff -u -d -r1.3082 -r1.3083 --- ChangeLog 12 Jan 2007 12:47:29 -0000 1.3082 +++ ChangeLog 12 Jan 2007 18:08:23 -0000 1.3083 @@ -1,5 +1,11 @@ 2007-01-12 Tim-Philipp Müller <tim at centricular dot net> + * 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 <tim at centricular dot net> * gst-libs/gst/audio/mixerutils.h: Add G_BEGIN_DECLS and G_END_DECLS guards so these helpers can be used when compiling with c++ compilers as well. Index: missing-plugins.c RCS file: /cvs/gstreamer/gst-plugins-base/gst-libs/gst/utils/missing-plugins.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- missing-plugins.c 9 Jan 2007 14:20:08 -0000 1.1 +++ missing-plugins.c 12 Jan 2007 18:08:23 -0000 1.2 @@ -95,7 +95,15 @@ 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; } |