Skip to content

Commit

Permalink
Fix streaming plugin mutex unlock when disabling mountpoint (meetecho…
Browse files Browse the repository at this point in the history
  • Loading branch information
lionelnicolas committed Jun 10, 2021
1 parent 2d83e96 commit 9c9d335
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/janus_streaming.c
Original file line number Diff line number Diff line change
Expand Up @@ -4174,8 +4174,11 @@ static json_t *janus_streaming_process_synchronous_request(janus_streaming_sessi
JANUS_VALIDATE_JSON_OBJECT(root, disable_parameters,
error_code, error_cause, TRUE,
JANUS_STREAMING_ERROR_MISSING_ELEMENT, JANUS_STREAMING_ERROR_INVALID_ELEMENT);
if(error_code != 0)
if(error_code != 0) {
janus_refcount_decrease(&mp->ref);
janus_mutex_unlock(&mountpoints_mutex);
goto prepare_response;
}
mp->enabled = FALSE;
gboolean stop_recording = TRUE;
json_t *stop_rec = json_object_get(root, "stop_recording");
Expand Down

0 comments on commit 9c9d335

Please sign in to comment.