[Top][All Lists]

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

[Linphone-developers] [patch] interrupting a recording results in an inv

From: David Lesaffre
Subject: [Linphone-developers] [patch] interrupting a recording results in an invalid error message
Date: Tue, 9 Jul 2013 15:47:46 +0200

The code in mediastreamer2/src/audiofilters/msfilerec.c produces an
error message when resuming an interrupted recording.
The return value of the call to 'lseek' is tested against 0 (zero).
The man page for lseek however, says:
"Upon successful completion, lseek() returns the resulting offset
       location as measured in bytes from the beginning of the file.  On
       error, the value (off_t) -1 is returned and errno is set to indicate
       the error."

Hence, the test should be on a negative return value.
Patch against latest git has been attached.

Attachment: lseek.patch
Description: Binary data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]