[gst-devel] Possible bug in v4l2src, please have a look

Fredrik Persson frepe at bredband.net
Wed Nov 15 02:00:51 CET 2006


(Sorry for replying to my own question)

It seems to be the ioctl on line 639-640 here:

http://webcvs.freedesktop.org/gstreamer/gst-plugins-good/sys/v4l2/v4l2src_calls.c?annotate=1.47

... that fails (returning EINVAL). I don't know why, though. Perhaps
"alima" can tell me more?

/Fredrik Persson

On Wed, 2006-11-15 at 01:07 +0100, Fredrik Persson wrote:
> I have attached two files, please download them into the same directory, have some kind of v4l2 device connected to the machine (I use a Pinnacle TV USB 2.0, test it with gst-launch v4l2src ! xvimagesink first) and then run "python v4l2srctest.py". In the small gui, click the "Change" button which will produce this error message:
> 
> (v4l2srctest.py:7012): GStreamer-CRITICAL **: Failed to deactivate pad v4l2src0:src, very bad
> 
> And also this:
> 
> 0:00:06.003590000  7012 0x81b6d30 ERROR              basesrc gstbasesrc.c:1938:gst_base_src_activate_push:<v4l2src1> Failed to start in push mode
> 
> The second error message, I think, comes from the fact that the first v4l2src element never releases /dev/video0 so the second v4l2src element cannot open it.
> 
> What I expected to see with this small python program was to have v4l2src0 completely disposed and have it close its filedescriptor on /dev/video0. Why doesn't it?
> 
> This is all tested on CVS versions of core and -good as of today, btw.
> 
> TIA
> 
> /Fredrik Persson 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________ gstreamer-devel mailing list gstreamer-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gstreamer-devel




More information about the gstreamer-devel mailing list