projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
debe7d2
)
video: Don't corrupt caption GstMeta
author
Edward Hervey
<edward@centricular.com>
Mon, 16 Apr 2018 15:04:06 +0000
(17:04 +0200)
committer
Edward Hervey
<bilboed@bilboed.com>
Mon, 16 Apr 2018 15:04:06 +0000
(17:04 +0200)
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.
gst-libs/gst/video/video-anc.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/video/video-anc.c
b/gst-libs/gst/video/video-anc.c
index eb1c18681de2b247cc1f90c028000e7b1675e25d..32d075ee1fd04ef074a844074a5649c298380d1c 100644
(file)
--- a/
gst-libs/gst/video/video-anc.c
+++ b/
gst-libs/gst/video/video-anc.c
@@
-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;
}