GNOME Bugzilla – Bug 93861
[0.6.2] gst-compprep needs X display to run
Last modified: 2004-12-22 21:47:04 UTC
gst-compprep tries to open an X display while running. Since it's primarily an administration tool, this isn't cool.
Hm, we used to have that for gst-register as well. It was xvideosink querying for it's capabilities I think. Does it actually present a problem ? Segfault, something else ?
No segfault but it is a headache for the Debian package maintainer. People see the "open display failed!" and report bugs. That message should be supressed during gst-compprep for sure. But during application runtime that is a important error message that should be propagated to the user. How? I have no idea. Please reopen this bug.
Added fix to CVS that should supress the annoying printing. Can probably close this now.
Ok, so I didn't fully fix it. No more "open display failed" messages but xvideosink and video sink can still print out this while running gst-compprep: Xlib: connection to ":0.0" refused by server Xlib: No protocol specified Ideally this would be supressed for gst-compprep and properly reported to the application when used as a regular plugin.
Is this still happening? Because we fixed xvideosink for 0.6.1 to net query the X display upon plugin initialization to make gst-register work. (Bug 105256)
Ok, the real fix is in HEAD now, see http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins/sys/xvideo/xvideosink.c.diff?r1=1.38&r2=1.39 Problem is that gst-compprep creates elements of each type and xvideosink tried to initialize an X connection before going to READY.
Assigning to thomasvs for merge to 0.6 branch
benjamin, I don't see how the above patch changes the location where the X connection is opened...?
line 169++ in _class_init calls gst_xvideosink_get_pad_template_caps. That function opens (and closes afterwards) an X connection.
I've got a backport of the HEAD xvideosink code in #109069, pending to be applied into 0.6.2. Let's continue discussion there, it includes this fix too. *** This bug has been marked as a duplicate of 109069 ***