[MPlayer-dev-eng] [PATCH] stream/stream_ffmpeg.c: convert to avio API

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Mar 25 12:06:18 CEST 2012


On Sat, Mar 24, 2012 at 05:19:15PM -0400, Alexis Ballier wrote:
> adding a call to avio_flush and check the error might resolve this maybe ?
> 
> (untested)

Probably. Would be jolly good to have it tested though.
Not sure about a good way to test it.

> --- stream/stream_ffmpeg.c	(revision 34831)
> +++ stream/stream_ffmpeg.c	(working copy)
> @@ -35,7 +35,8 @@
>  static int write_buffer(stream_t *s, char *buffer, int len)
>  {
>      avio_write(s->priv, buffer, len);
> -    return len;
> +    avio_flush(s->priv);
> +    return (((AVIOContext *)s->priv)->error) ? -1 : len;
>  }
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng


More information about the MPlayer-dev-eng mailing list