[gstreamer-bugs] [Bug 342494] [v4l] Query "device-name" even if device is not open

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Wed Jul 19 07:59:40 PDT 2006


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=342494
 GStreamer | gst-plugins-base | Ver: HEAD CVS


Tim-Philipp Müller changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #65943|none                        |committed
               Flag|                            |
  Attachment #65944|none                        |committed
               Flag|                            |
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
            Summary|[v4l] [patch] Query "device-|[v4l] Query "device-name"
                   |name" even if device is not |even if device is not open
                   |open                        |
   Target Milestone|HEAD                        |0.10.10




------- Comment #5 from Tim-Philipp Müller  2006-07-19 14:59 UTC -------
Okay, committed these patches:

 2006-07-19  Tim-Philipp Müller  <tim at centricular dot net>

       Patch by: Martin Szulecki

       * sys/v4l/gstv4lelement.c: (gst_v4lelement_get_property):
         If "device-name" is requested and the device is not
         open, try to temporarily open it to obtain this
         information (#342494).

  2006-07-19  Tim-Philipp Müller  <tim at centricular dot net>

       Patch by: Martin Szulecki

       * sys/v4l2/gstv4l2object.c: (gst_v4l2_object_get_property_helper):
         If "device-name" is requested and the device is not
         open, try to temporarily open it to obtain this
         information (#342494).


I'm not really entirely happy about this, since it doesn't work if the device
is in use and because the whole thing is probably racy, but for the usual
property probing/v4lsrc use case at least the latter doesn't matter too much
and working in some cases is still better than in none. GstPropertyProbe having
a sucky API doesn't make things easier, but can't be changed in the stable
series unfortunately.

IMHO it would be better if your application tried to obtain this kind of
information from other sources, like HAL for example.


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list