* morituri/common/gstreamer.py:
In -bad the plugin is called audioparsersbad.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2011-05-27 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
|
* morituri/common/gstreamer.py:
|
||||||
|
In -bad the plugin is called audioparsersbad.
|
||||||
|
|
||||||
2011-05-25 Thomas Vander Stichele <thomas at apestaart dot org>
|
2011-05-25 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
* morituri/common/gstreamer.py:
|
* morituri/common/gstreamer.py:
|
||||||
|
|||||||
@@ -174,19 +174,22 @@ class GstPipelineTask(task.Task):
|
|||||||
|
|
||||||
# workaround for issue #64
|
# workaround for issue #64
|
||||||
def removeAudioParsers():
|
def removeAudioParsers():
|
||||||
|
log.debug('gstreamer', 'Removing buggy audioparsers plugin if needed')
|
||||||
|
|
||||||
import gst
|
import gst
|
||||||
registry = gst.registry_get_default()
|
registry = gst.registry_get_default()
|
||||||
|
|
||||||
|
plugin = registry.find_plugin("audioparsersbad")
|
||||||
|
if plugin:
|
||||||
|
# always remove from bad
|
||||||
|
log.debug('gstreamer', 'removing audioparsersbad plugin from registry')
|
||||||
|
registry.remove_plugin(plugin)
|
||||||
|
|
||||||
plugin = registry.find_plugin("audioparsers")
|
plugin = registry.find_plugin("audioparsers")
|
||||||
if not plugin:
|
if plugin:
|
||||||
return
|
log.debug('gstreamer', 'Found audioparsers plugin from %s %s',
|
||||||
|
plugin.get_source(), plugin.get_version())
|
||||||
|
|
||||||
log.debug('gstreamer', 'Found audioparsers plugin from %s %s',
|
if plugin.get_source() == 'gst-plugins-good' \
|
||||||
plugin.get_source(), plugin.get_version())
|
and plugin.get_version() > '0.10.29.1':
|
||||||
|
return
|
||||||
if plugin.get_source() == 'gst-plugins-good' \
|
|
||||||
and plugin.get_version() > '0.10.29.1':
|
|
||||||
return
|
|
||||||
|
|
||||||
# always remove from bad
|
|
||||||
log.debug('gstreamer', 'removing audioparsers plugin from registry')
|
|
||||||
registry.remove_plugin(plugin)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user