mbox series

[0/2] pcm_file write file assert case handling

Message ID 1559910203-29795-1-git-send-email-amiartus@de.adit-jv.com (mailing list archive)
Headers show
Series pcm_file write file assert case handling | expand

Message

Adam Miartus June 7, 2019, 12:23 p.m. UTC
patched possible case where failed file write can cause assert in pcm_file
plugin, by reporting error EPIPE and printing debug message.

reporting an error with debug hint message is preferred to assert, user
may have a way to recover in upper API level. providing a debug message
makes it easier to debug the issue from logs. previously, reaching assert
did not provide useful message to API level user.

Adam Miartus (2):
  pcm_file: do not disrupt playback on output file write fail
  pcm_file: report write output file error to api user

 src/pcm/pcm_file.c | 63 +++++++++++++++++++++++++++++++++++++++---------------
 1 file changed, 46 insertions(+), 17 deletions(-)