mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
video: Don't corrupt caption GstMeta
the meta initialization function is provided *after* the base implementation fields have been set so do *NOT* reset them otherwise it would result in corrupted GstMeta. Instead explicitely set our fields to the default values we actually want.
This commit is contained in:
parent
debe7d2fdf
commit
4d40ac3fc5
1 changed files with 2 additions and 1 deletions
|
@ -458,8 +458,9 @@ gst_video_caption_meta_init (GstMeta * meta, gpointer params,
|
|||
{
|
||||
GstVideoCaptionMeta *emeta = (GstVideoCaptionMeta *) meta;
|
||||
|
||||
memset (emeta, 0, sizeof (GstVideoCaptionMeta));
|
||||
emeta->caption_type = GST_VIDEO_CAPTION_TYPE_UNKNOWN;
|
||||
emeta->data = NULL;
|
||||
emeta->size = 0;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue