mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-08 18:39:54 +00:00
rtmp2/client: Make sure 'desc' is not NULL
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1403>
This commit is contained in:
parent
2037f1ed0a
commit
a13f234be3
1 changed files with 3 additions and 3 deletions
|
@ -746,15 +746,15 @@ send_connect_done (const gchar * command_name, GPtrArray * args,
|
|||
GstUri *query;
|
||||
|
||||
node = gst_amf_node_get_field (optional_args, "description");
|
||||
if (!node) {
|
||||
desc = node ? gst_amf_node_peek_string (node, NULL) : NULL;
|
||||
if (!desc) {
|
||||
g_task_return_new_error (task, G_IO_ERROR, G_IO_ERROR_PERMISSION_DENIED,
|
||||
"Connect rejected; no description");
|
||||
g_object_unref (task);
|
||||
return;
|
||||
}
|
||||
|
||||
desc = gst_amf_node_peek_string (node, NULL);
|
||||
GST_DEBUG ("connect result desc: %s", GST_STR_NULL (desc));
|
||||
GST_DEBUG ("connect result desc: %s", desc);
|
||||
|
||||
if (authmod == GST_RTMP_AUTHMOD_AUTO && strstr (desc, "code=403 need auth")) {
|
||||
if (strstr (desc, "authmod=adobe")) {
|
||||
|
|
Loading…
Reference in a new issue