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:
ad1f3a9
)
avcfg: Properly initalize GValue
author
Edward Hervey
<edward@centricular.com>
Mon, 16 Jul 2018 06:44:45 +0000
(08:44 +0200)
committer
Edward Hervey
<bilboed@bilboed.com>
Mon, 16 Jul 2018 06:44:45 +0000
(08:44 +0200)
.. to the expected property value type.
ext/libav/gstavcfg.c
patch
|
blob
|
history
diff --git
a/ext/libav/gstavcfg.c
b/ext/libav/gstavcfg.c
index
aee2c34
..
6018dfe
100644
(file)
--- a/
ext/libav/gstavcfg.c
+++ b/
ext/libav/gstavcfg.c
@@
-565,15
+565,17
@@
gst_ffmpeg_cfg_fill_context (GObject * object, AVCodecContext * context)
for (i = 0; i < num_props; ++i) {
GParamSpec *pspec = pspecs[i];
const AVOption *opt;
- GValue value;
+ GValue value
= G_VALUE_INIT
;
opt = g_param_spec_get_qdata (pspec, avoption_quark);
if (!opt)
continue;
+ g_value_init (&value, G_PARAM_SPEC_VALUE_TYPE (pspec));
g_object_get_property (object, pspec->name, &value);
set_option_value (context, pspec, &value, opt);
+ g_value_unset (&value);
}
g_free (pspecs);
}