GNOME Bugzilla – Bug 105256
[0.6 branch candidate] gst-register doesn't work when a bad DISPLAY is set
Last modified: 2004-12-22 21:47:04 UTC
gst-register seems to check the DISPLAY for some reason when running. So something like: DISPLAY=cnn.com:0 gst-register Will cause it to error out, eventually. As the display doesn't seem to be needed at all, it should be ignored.
Actually the Display is needed at the moment. The Videosink tries to get infromation about the used display and use that on its padtemplates. I believe the right behaviour would be to use generic caps on the padtemplates and only check if the given caps are valid upon _link. As a sidenode: We should make sure that other hardware dependant plugins (alsa, oss, v4l, etc) use generic caps, too. Current behaviour would need a rerun of gst_register everytime you change hardware. Somebody change the component to gst-plugins please.
oss, v4l and v4l already do generic caps on their templates. v4l2, additionally, implements a get_caps function that is hardware_specific and only works if the device is opened (which happens on NULL->READY). oss, alsa, xv et all should probably do this too, if needed at all... v4l doesn't need it, there's no sane way of implementing it.
Created attachment 14560 [details] [review] patch for xvideosink in 0_6 branch
Applied to 0.6.1 CVS.