alsasink: Improve logging in write() function
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 24 Aug 2021 19:26:12 +0000 (15:26 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 20 Sep 2021 18:06:44 +0000 (18:06 +0000)
commit7b76c97de92a65cc8347c855cc89af517ad2e8f9
tree5a1b04d7dafb6049afd09e75a2166343ae476082
parentf3601164d2a63b27f19dc6d1a4227302a59263e5
alsasink: Improve logging in write() function

This moves the "written X frames" lower so that we don't trace
confusing negative values on errors and add the error code in the
"Write error" log.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1261>
ext/alsa/gstalsasink.c