* morituri/common/gstreamer.py:

Also remove audioparsers if it's in bad.
This commit is contained in:
Thomas Vander Stichele
2011-05-25 08:26:23 +00:00
parent 6462291ba1
commit ef56a14dc0
2 changed files with 14 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2011-05-25 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/common/gstreamer.py:
Also remove audioparsers if it's in bad.
2011-05-24 Thomas Vander Stichele <thomas at apestaart dot org>
* configure.ac:

View File

@@ -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)