mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-03 15:06:34 +00:00
rtmp2: Use correct size of write macro for param2.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2146>
This commit is contained in:
parent
7395057af3
commit
81d4ccdc44
1 changed files with 1 additions and 1 deletions
|
@ -413,7 +413,7 @@ gst_rtmp_message_new_protocol_control (GstRtmpProtocolControl * pc)
|
|||
data = g_malloc (size);
|
||||
GST_WRITE_UINT32_BE (data, pc->param);
|
||||
if (pc_has_param2 (pc->type)) {
|
||||
GST_WRITE_UINT32_BE (data + 4, pc->param2);
|
||||
GST_WRITE_UINT8 (data + 4, pc->param2);
|
||||
}
|
||||
|
||||
return gst_rtmp_message_new_wrapped (pc->type,
|
||||
|
|
Loading…
Reference in a new issue