[Bug 668343] [0.11] - segfault when using missing plugin support in 0.11
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Fri Feb 24 16:44:36 PST 2012
https://bugzilla.gnome.org/show_bug.cgi?id=668343
GStreamer | gst-plugins-base | 0.11.x
Tim-Philipp Müller <t.i.m> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #6 from Tim-Philipp Müller <t.i.m at zen.co.uk> 2012-02-25 00:44:30 UTC ---
Fixed the annotation and also allowed context to be None:
commit 5dbb27fb50116da00fe9bc84e2a3e37e53dc0232
Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
Date: Sat Feb 25 00:39:53 2012 +0000
pbutils: fix gst_install_plugins_{sync,async} g-i annotations
the gir scanner doesn't use a sensible defaults for string array
arguments, so we have to annotate it properly.
https://bugzilla.gnome.org/show_bug.cgi?id=668343
Something to actually test/reproduce this properly (need to run main loop; need
a plugin installer script, otherwise we just get a no-script error return right
away without it even doing anything, at least in an uninstalled setup):
from gi.repository import Gst
from gi.repository import Gtk
from gi.repository import GstPbutils
from gi.repository import GObject
import os
Gst.init(None)
GObject.threads_init()
helper_bin='/tmp/dummy-plugin-install-helper.sh'
f = file(helper_bin, "w")
f.writelines(['#!/bin/sh\n', 'echo INSTALL: $*\n'])
f.close()
os.chmod(helper_bin, 0755)
caps=Gst.Caps.from_string("application/mxf")
missing = GstPbutils.missing_encoder_installer_detail_new(caps)
def donemessage(result, data):
print "done!!!", result
Gtk.main_quit()
os.environ['GST_INSTALL_PLUGINS_HELPER'] = helper_bin
GstPbutils.install_plugins_async ([ missing ], None, donemessage, None)
Gtk.main()
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list