mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
rtmp2: Fix allocation of GstRtmpMeta
Use the right size. On 64-bit platforms, `GstMetaInfo` is larger than `GstRtmpMeta`, which masked this bug. On 32-bit platforms, it causes crashes. Thanks to @maxatka for discovering this. Fixes: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues/1721 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2553>
This commit is contained in:
parent
637406cdb1
commit
5ebc9427d9
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ gst_rtmp_meta_get_info (void)
|
||||||
|
|
||||||
if (g_once_init_enter (&rtmp_meta_info)) {
|
if (g_once_init_enter (&rtmp_meta_info)) {
|
||||||
const GstMetaInfo *meta = gst_meta_register (GST_RTMP_META_API_TYPE,
|
const GstMetaInfo *meta = gst_meta_register (GST_RTMP_META_API_TYPE,
|
||||||
"GstRtmpMeta", sizeof *meta, gst_rtmp_meta_init, NULL,
|
"GstRtmpMeta", sizeof (GstRtmpMeta), gst_rtmp_meta_init, NULL,
|
||||||
gst_rtmp_meta_transform);
|
gst_rtmp_meta_transform);
|
||||||
g_once_init_leave (&rtmp_meta_info, meta);
|
g_once_init_leave (&rtmp_meta_info, meta);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue