[MPlayer-dev-eng] [PATCH] audio file truncation

Alan Curry pacman at TheWorld.com
Tue Jun 6 21:24:50 CEST 2006


Uoti Urpala writes the following:
>
>On Tue, 2006-06-06 at 18:03 +0200, Clemens Ladisch wrote:
>
>> Anyway, I think get_space() and/or play() should be extended to return a
>> negative value to indicate a fatal error.
>
>I agree that being able to return an error from play() would make sense.
>Playback truncation fixes still couldn't rely on either getting an error
>or the ao eventually accepting the data unless every ao is checked/fixed
>to satisfy that though.

This could be the interpretation of my AOPLAY_FINAL_CHUNK flag: if play()
returns 0 when called with AOPLAY_FINAL_CHUNK, this shall be considered a
permanent rejection of the chunk. (Maybe it should then be called AOPLAY_PUSH
instead)



More information about the MPlayer-dev-eng mailing list