alsasink: Fix for being stuck in stop_streaming_threads state
authorRobert Rosengren <robertr@axis.com>
Thu, 30 Mar 2023 14:09:06 +0000 (16:09 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 31 Mar 2023 22:46:28 +0000 (23:46 +0100)
commitb2feff23bc3be757e6ad046387867fc35a787d12
tree321c9e9a8328e9f74836b7626c309de39ca91a00
parent5c9988b7596d04c898debb555a66be990d36f360
alsasink: Fix for being stuck in stop_streaming_threads state

Moving from PLAYING to NULL will set the stop_streaming_threads to TRUE,
but when moving back upwards its not reset to FALSE (as only done in
uncalled init and resume callbacks).

Fix by reseting value in the prepare callback.

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