Re: [PATCH 3/3] pcm_file: in case of failed write clear file buffer variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 01 Jul 2019 15:25:18 +0200,
Adam Miartus wrote:
> 
> previously, in case of failed write to output file, error is returned
> from snd_pcm_writei/read APIs, user could run pcm_drain as fallback and
> encounter an assert, since drain would try to write remaining file
> buffer to a file
> 
> if failed to write to output file in first place, it makes sense to clear
> current internal pmc_file file buffer variables
> 
> Signed-off-by: Adam Miartus <amiartus@xxxxxxxxxxxxxx>
> Reviewed-by: Timo Wischer <twischer@xxxxxxxxxxxxxx>

Applied, thanks.


Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux