Display and control your Android device
Add missing mutex unlock on error
Romain Vimonta65ebceac1e1
diff --git a/app/src/recorder.c b/app/src/recorder.cindex 76edbd03..e31492c0 100644--- a/app/src/recorder.c+++ b/app/src/recorder.c@@ -361,12 +361,14 @@ recorder_push(struct recorder *recorder, const AVPacket *packet) {if (recorder->failed) {// reject any new packet (this will stop the stream)+ mutex_unlock(recorder->mutex);return false;}struct record_packet *rec = record_packet_new(packet);if (!rec) {LOGC("Could not allocate record packet");+ mutex_unlock(recorder->mutex);return false;}