[FFmpeg-devel] [PATCH] ALSA for libavdevice

Michael Niedermayer michaelni
Sat Jan 24 20:05:06 CET 2009


On Sat, Jan 24, 2009 at 02:23:18PM +0100, Nicolas George wrote:
> Le duodi 2 pluvi?se, an CCXVII, Michael Niedermayer a ?crit?:
> > av_cold and similarly for the other just once run functions
> 
> Done.
> 
> I hesitated for ff_alsa_xrun_recover. I decided against the av_cold because
> I think that, in the rare cases where it is called, we want the recovery to
> start as soon as possible.

i agree 


[...]
> +    if (ctx->filename[0] == 0) {
> +        audio_device = "default";
> +    } else {
> +        audio_device = ctx->filename;
> +    }

if(ctx->filename[0]) audio_device = ctx->filename;
else                 audio_device = "default";

[...]
> +    if (st == NULL) {

if(!st)


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Republics decline into democracies and democracies degenerate into
despotisms. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090124/7a90b73a/attachment.pgp>



More information about the ffmpeg-devel mailing list