public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: linux-media@vger.kernel.org
Subject: Re: [git:xawtv3/master] xawtv: reenable its usage with webcam's
Date: Thu, 30 Jun 2011 12:55:53 +0200	[thread overview]
Message-ID: <4E0C5639.9030501@redhat.com> (raw)
In-Reply-To: <4E0B7CA3.3010104@redhat.com>

Hi,

On 06/29/2011 09:27 PM, Mauro Carvalho Chehab wrote:

<snip>

>
> Anyway, it is fixed. I also made scantv to force for a TV device at auto mode, as it
> doesn't sense to scan for TV channels on devices without tuner.

Thanks for fixing this, 2 remarks wrt the auto patch for
scantv:

1) This bit should be #ifdef __linux__ since we only support
auto* on linux because of the sysfs dep:

@@ -149,6 +149,9 @@ main(int argc, char **argv)

      /* parse options */
      ng_init();
+    /* Autodetect devices */
+    ng_dev.video = "auto_tv";
+
      for (;;) {
  	if (-1 == (c = getopt(argc, argv, "hsadi:n:f:o:c:C:D:")))
  	    break;

2) The added return NULL in case no device can be found lacks
printing an error message:

@@ -568,6 +569,8 @@ static void *ng_vid_open_auto(struct ng_vid_driver *drv, char *devpath)

      /* Step 2: try grabber devices and webcams */
      if (!handle) {
+	if (!allow_grabber)
+	    return NULL;
  	device = NULL;
  	while (1) {
  	    device = get_associated_device(md, device, MEDIA_V4L_VIDEO, NULL, NONE);

I propose changing the return NULL, with a goto to the error print further down.

>  From my side, I don't intend to touch on xawtv any time soon. So, maybe we can wait
> for a couple days and release version 1.101.

Assuming the 2 things mentioned above get fixed that sounds like a good plan to me.

Regards,

Hans

  reply	other threads:[~2011-06-30 10:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1Qbdw6-0007wL-E8@www.linuxtv.org>
2011-06-29 11:01 ` [git:xawtv3/master] xawtv: reenable its usage with webcam's Hans de Goede
2011-06-29 12:01   ` Mauro Carvalho Chehab
2011-06-29 12:24     ` Hans de Goede
2011-06-29 19:27       ` Mauro Carvalho Chehab
2011-06-30 10:55         ` Hans de Goede [this message]
2011-06-30 12:35           ` Mauro Carvalho Chehab
2011-06-30 13:20             ` Mauro Carvalho Chehab
2011-06-30 13:24               ` Mauro Carvalho Chehab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E0C5639.9030501@redhat.com \
    --to=hdegoede@redhat.com \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox