[gstreamer-bugs] [Bug 549879] gst-python managing sys.argv while it shouldn't

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Tue Mar 31 10:17:29 PDT 2009


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=549879

  GStreamer | gst-python | Ver: 0.10.12




------- Comment #10 from Edward Hervey  2009-03-31 17:17 UTC -------
Mike, your suggestion would mean that 'import gst' would have no effect apart
from giving you a blank module with only one symbol : init (since everything
else requires GTypes and crack to be initialized... which is done through
gst_init()).

That means you can't do *ANYTHING* with that module until you've called init...
including mentionning any symbols from that module since it's empty and the
parser will fail.

So yeah it would allow you to do something like this:
"""
import pygst
pygst.require('0.10')
pygst.will_handle_init
import gst
<do your arg parsing BUT YOU CAN NOT DO ANYTHING ELSE>
gst.init
<start using/mentionning the gst module symbols>
"""

Is it really that much more flexible than:
"""
import pygst
pygst.require('0.10')
<do your arg parsing>
import gst
<start using/mentionning the gst module symbols>
"""


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=549879.




More information about the Gstreamer-bugs mailing list