From ef56a14dc0ecdb38d17737b75c0ccc638d4b58e9 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Wed, 25 May 2011 08:26:23 +0000 Subject: [PATCH] * morituri/common/gstreamer.py: Also remove audioparsers if it's in bad. --- ChangeLog | 5 +++++ morituri/common/gstreamer.py | 11 +++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1dee4a2..2c2124f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-05-25 Thomas Vander Stichele + + * morituri/common/gstreamer.py: + Also remove audioparsers if it's in bad. + 2011-05-24 Thomas Vander Stichele * configure.ac: diff --git a/morituri/common/gstreamer.py b/morituri/common/gstreamer.py index 991f23b..afee756 100644 --- a/morituri/common/gstreamer.py +++ b/morituri/common/gstreamer.py @@ -177,5 +177,12 @@ def removeAudioParsers(): import gst registry = gst.registry_get_default() plugin = registry.find_plugin("audioparsers") - if plugin and plugin.get_version() <= '0.10.29.1': - registry.remove_plugin(plugin) + if not plugin: + return + + if plugin.get_source() == 'gst-plugins-good' \ + and plugin.get_version() > '0.10.29.1': + return + + # always remove from bad + registry.remove_plugin(plugin)