All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: linux-media <linux-media@vger.kernel.org>
Subject: Re: [PATCH] xawtv: release buffer if it can't be displayed
Date: Sun, 31 Mar 2013 14:48:01 +0200	[thread overview]
Message-ID: <51583081.4000806@redhat.com> (raw)
In-Reply-To: <201303301047.41952.hverkuil@xs4all.nl>

Hi,

On 03/30/2013 10:47 AM, Hans Verkuil wrote:
> This patch for xawtv3 releases the buffer if it can't be displayed because
> the resolution of the current format is larger than the size of the window.
>
> This will happen if the hardware cannot scale down to the initially quite
> small xawtv window. For example the au0828 driver has a fixed size of 720x480,
> so it will not display anything until the window is large enough for that
> resolution.
>
> The problem is that xawtv never releases (== calls QBUF) the buffer in that
> case, and it will of course run out of buffers and stall. The only way to
> kill it is to issue a 'kill -9' since ctrl-C won't work either.
>
> By releasing the buffer xawtv at least remains responsive and a picture will
> appear after resizing the window. Ideally of course xawtv should resize itself
> to the minimum supported resolution, but that's left as an exercise for the
> reader...
>
> Hans, the xawtv issues I reported off-list are all caused by this bug and by
> by the scaling bug introduced recently in em28xx. They had nothing to do with
> the alsa streaming, that was a red herring.

Thanks for the debugging and for the patch. I've pushed the patch to
xawtv3.git. I've a 2 patch follow up set which should fix the issue with being
able to resize the window to a too small size.

I'll send this patch set right after this mail, can you test it with the au0828
please?

Thanks,

Hans

  reply	other threads:[~2013-03-31 12:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-30  9:47 [PATCH] xawtv: release buffer if it can't be displayed Hans Verkuil
2013-03-31 12:48 ` Hans de Goede [this message]
2013-04-01 10:19   ` Hans Verkuil
2013-04-01 14:23     ` Hans de Goede
2013-04-01 14:39       ` Hans Verkuil
2013-04-02  9:02         ` Hans de Goede

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=51583081.4000806@redhat.com \
    --to=hdegoede@redhat.com \
    --cc=hverkuil@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.