[MPlayer-dev-eng] Suggested diffs to enable mplayer to stream audio to other apps

C.Y.M cym at syphir.sytes.net
Mon Nov 29 10:01:06 CET 2004


Triode wrote:

> --- MPlayer-20041126/libao2/ao_pcm.c    2004-09-18 21:31:27.000000000 +0100
> +++ MPlayer-mod/libao2/ao_pcm.c 2004-11-27 08:35:26.000000000 +0000
> @@ -119,7 +119,12 @@
>               (channels > 1) ? "Stereo" : "Mono", 
> audio_out_format_name(format));
>        mp_msg(MSGT_AO, MSGL_INFO, MSGTR_AO_PCM_HintInfo);
> 
> -       fp = fopen(ao_outputfilename, "wb");
> +       // "-" is a special file name to send stream to stdout, use with 
> "-slient" to ensure audio not corrupted by status messages
> +        if (!strcmp(ao_outputfilename, "-"))
> +                fp = stdout;
> +        else
> +                fp = fopen(ao_outputfilename, "wb");
> +
>        if(fp) {
>                if(ao_pcm_waveheader){ /* Reserve space for wave header */
>                        fwrite(&wavhdr,sizeof(wavhdr),1,fp);
> @@ -187,7 +192,10 @@

It looks like you have a typo in that hunk.

-       {"slient", &verbose, CONF_TYPE_FLAG, CONF_GLOBAL, 0, -10, NULL},
+       {"silent", &verbose, CONF_TYPE_FLAG, CONF_GLOBAL, 0, -10, NULL},




More information about the MPlayer-dev-eng mailing list