wpeaudiosink: Check error value explicitly

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8229>
This commit is contained in:
Edward Hervey 2025-01-06 11:03:32 +01:00 committed by GStreamer Marge Bot
parent 72639bafb7
commit 5bbb14ff7a

View file

@ -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)