[gstreamer-bugs] [Bug 566121] New: Wrong error message when the user has no permissions on the firewire devices
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Wed Dec 31 04:11:24 PST 2008
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=566121
GStreamer | gst-plugins-good | Ver: HEAD CVS
Summary: Wrong error message when the user has no permissions on
the firewire devices
Product: GStreamer
Version: HEAD CVS
Platform: Other
OS/Version: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gst-plugins-good
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: xqueralt at gmail.com
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME version: 2.21/2.22
GNOME milestone: Unspecified
Please describe the problem:
When the user running gstreamer has not read/write permissions on the raw1394
or fwX devices the error message shown is "Resource not found." instead of "
Could not open resource for reading."
Using the latest gstreamer (from CVS) and the latest libraw1394 (from the git
repository it also happens with the 2.0 version)
Steps to reproduce:
1. Log-in with an unprivileged user without read & write permissions on
/dev/raw1394 ir /dev/fwX
2. Run gst-launch dv1394src ! fakesink
Actual results:
xavier at xqueralt:cvs > gst-launch dv1394src ! fakesink
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstDV1394Src:dv1394src0: Resource
not found.
Additional debug info:
gstdv1394src.c(891): gst_dv1394src_start ():
/GstPipeline:pipeline0/GstDV1394Src:dv1394src0:
no ports available for raw1394
Setting pipeline to NULL ...
FREEING pipeline ...
Expected results:
xavier at xqueralt:cvs > gst-launch dv1394src ! fakesink
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstDV1394Src:dv1394src0: Could not
open resource for reading.
Additional debug info:
gstdv1394src.c(872): gst_dv1394src_start ():
/GstPipeline:pipeline0/GstDV1394Src:dv1394src0:
system error: Permission denied
Setting pipeline to NULL ...
FREEING pipeline ...
Does this happen every time?
Other information:
Maybe this is a bug of libraw1394 instead of gst as the raw1394_new_handle
method is always returning a handle even when the devices couldn't been opened.
This is because if no raw1394 device is found or there is a problem while
opening it the fw_new_handle is called to look for the fwX devices, this last
method doesn't check whether the devices could be opened and always returns the
handle structure.
--
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=566121.
More information about the gstreamer-bugs
mailing list