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

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Mon Mar 30 14:36:37 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 #7 from Tobias Mueller  2009-03-30 21:36 UTC -------
Hey Edward. I don't know gstreamer or it's python bindings at all, but I see a
way around it:

Couldn't you make the call to gst_init() mandatory for the client using the
bindings? Many modules do such a thing, take pyGTK for example.

The user then could decide which parameter to pass and which not. Having
gstreamer handling sys.argv is ugly and will cause trouble for many people.

In fact, I would expect that the imported module handles arguments to my
program. It simply shouldn't unless I explicitly ask it to.
Also, it is very common to organize imports at the beginning of a python
module. With the current behaviour, you force programs to have their code
restructured in a ugly way, because gst being the only module which behaves
strangely.


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