public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* how to discover that a device is v4l or v4l2?
@ 2008-08-07 17:43 Farkas Levente
  2008-08-07 17:55 ` Hans de Goede
  0 siblings, 1 reply; 2+ messages in thread
From: Farkas Levente @ 2008-08-07 17:43 UTC (permalink / raw)
  To: video4linux-list

hi,
how can i discover whether a video device /dev/video0 is support v4l or 
v4l2? currently if i try to use the wrong type in gstreamer it's hang 
forever and only a hard kill can help.
is there any way where can i find out the type?
thanks.

-- 
   Levente                               "Si vis pacem para bellum!"

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: how to discover that a device is v4l or v4l2?
  2008-08-07 17:43 how to discover that a device is v4l or v4l2? Farkas Levente
@ 2008-08-07 17:55 ` Hans de Goede
  0 siblings, 0 replies; 2+ messages in thread
From: Hans de Goede @ 2008-08-07 17:55 UTC (permalink / raw)
  To: Farkas Levente; +Cc: video4linux-list

Farkas Levente wrote:
> hi,
> how can i discover whether a video device /dev/video0 is support v4l or 
> v4l2? currently if i try to use the wrong type in gstreamer it's hang 
> forever and only a hard kill can help.
> is there any way where can i find out the type?

Do an VIDIOC_QUERYCAP ioctl on it if it supports that its v4l2, if not it is v4l1

Regards,

Hans

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-08-07 17:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-07 17:43 how to discover that a device is v4l or v4l2? Farkas Levente
2008-08-07 17:55 ` Hans de Goede

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox