Commit c3e7511a authored by Jonathan Matthew's avatar Jonathan Matthew 🥗
Browse files

xfade: actually unlock the stream before returning if linking fails

This error case doesn't happen much, and the pipeline is unlikely to
recover from it, but at least it won't deadlock now.
parent a773c65d
Pipeline #288491 passed with stage
in 8 minutes and 22 seconds
......@@ -1155,8 +1155,8 @@ link_and_unblock_stream (RBXFadeStream *stream, GError **error)
RB_PLAYER_ERROR,
RB_PLAYER_ERROR_GENERAL,
_("Failed to link new stream into GStreamer pipeline"));
return FALSE;
g_mutex_unlock (&stream->lock);
return FALSE;
}
g_atomic_int_inc (&player->priv->linked_streams);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment