mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
wpeaudiosink: Check error value explicitly
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8229>
This commit is contained in:
parent
72639bafb7
commit
5bbb14ff7a
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ render (GstBaseSink * sink, GstBuffer * buf)
|
|||
goto write_error;
|
||||
|
||||
written_bytes = write (fds[0], info.data, info.size);
|
||||
if (written_bytes < 0)
|
||||
if (written_bytes == (gsize) - 1)
|
||||
goto write_error;
|
||||
|
||||
if (written_bytes != info.size)
|
||||
|
|
Loading…
Reference in a new issue