mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
rtmp2: Minor changes
- Remove an unneeded initialization to zero from AmfParser - Add missing initialization to gst_amf_serialize_command_valist - Add a g_return_if_fail to gst_rtmp_connection_request_window_size https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/merge_requests/878
This commit is contained in:
parent
a9a2c3d67a
commit
f5b068b26c
2 changed files with 4 additions and 1 deletions
|
@ -893,7 +893,6 @@ gst_amf_parse_command (const guint8 * data, gsize size,
|
||||||
AmfParser parser = {
|
AmfParser parser = {
|
||||||
.data = data,
|
.data = data,
|
||||||
.size = size,
|
.size = size,
|
||||||
.recursion_depth = 0,
|
|
||||||
};
|
};
|
||||||
GstAmfNode *node1 = NULL, *node2 = NULL;
|
GstAmfNode *node1 = NULL, *node2 = NULL;
|
||||||
GPtrArray *args = NULL;
|
GPtrArray *args = NULL;
|
||||||
|
@ -1119,6 +1118,8 @@ gst_amf_serialize_command_valist (gdouble transaction_id,
|
||||||
g_return_val_if_fail (command_name, NULL);
|
g_return_val_if_fail (command_name, NULL);
|
||||||
g_return_val_if_fail (argument, NULL);
|
g_return_val_if_fail (argument, NULL);
|
||||||
|
|
||||||
|
init_static ();
|
||||||
|
|
||||||
GST_LOG ("Serializing command '%s', transid %.0f", command_name,
|
GST_LOG ("Serializing command '%s', transid %.0f", command_name,
|
||||||
transaction_id);
|
transaction_id);
|
||||||
|
|
||||||
|
|
|
@ -989,6 +989,8 @@ gst_rtmp_connection_request_window_size (GstRtmpConnection * connection,
|
||||||
.param = window_ack_size,
|
.param = window_ack_size,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
g_return_if_fail (GST_IS_RTMP_CONNECTION (connection));
|
||||||
|
|
||||||
if (connection->out_window_ack_size == window_ack_size)
|
if (connection->out_window_ack_size == window_ack_size)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue