From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp2.versatel.nl ([62.58.50.89]:44675 "EHLO smtp2.versatel.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751285AbZBOI7T (ORCPT ); Sun, 15 Feb 2009 03:59:19 -0500 Message-ID: <4997DA6D.5010006@hhs.nl> Date: Sun, 15 Feb 2009 10:03:41 +0100 From: Hans de Goede MIME-Version: 1.0 To: Hans Verkuil CC: linux-media@vger.kernel.org Subject: Re: libv4l2 library problem References: <200902131357.46279.hverkuil@xs4all.nl> <200902150022.20486.hverkuil@xs4all.nl> In-Reply-To: <200902150022.20486.hverkuil@xs4all.nl> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-media-owner@vger.kernel.org List-ID: Hans Verkuil wrote: > Hi Hans, > > On Friday 13 February 2009 13:57:45 Hans Verkuil wrote: >> Hi Hans, >> >> I've developed a converter for the HM12 format (produced by Conexant MPEG >> encoders as used in the ivtv and cx18 drivers). >> >> But libv4l2 has a problem in its implementation of v4l2_read: it assumes >> that the driver can always do streaming. However, that is not the case >> for some drivers, including cx18 and ivtv. These drivers only implement >> read() functionality and no streaming. >> >> Can you as a minimum modify libv4l2 so that it will check for this case? >> The best solution would be that libv4l2 can read HM12 from the driver and >> convert it on the fly. But currently it tries to convert HM12 by starting >> to stream, and that produces an error. >> >> This bug needs to be fixed first before I can contribute my HM12 >> converter. > > My sincere apologies: I looked at the libv4l2 code again and it was clear > that it did in fact test for this case. I retested my own code and > everything seems to work as it should. So libv4l2 is fine, and I will > prepare a tree tomorrow containing the hm12 support for libv4lconvert. > Ok, > Sorry about this, No problem I didn't have time to look in to this yet :) Regards, Hans