Added it right before pushing the previous commit, it is
incorrect and deadlocks because this function gets called
from the join_bin thread, which already holds the lock,
that's the reason why request_aux_sender didn't take the
lock either.
g_return_val_if_fail (GST_IS_RTSP_STREAM (stream), NULL);
- g_mutex_lock (&stream->priv->lock);
-
bin = gst_bin_new (NULL);
stream->priv->rtxreceive = gst_element_factory_make ("rtprtxreceive", NULL);
update_rtx_receive_pt_map (stream);
g_free (name);
gst_object_unref (pad);
- g_mutex_unlock (&stream->priv->lock);
-
return bin;
}