d3d11decoder: Need to zero initilized for g_once
A vairable to be used for g_once, it should be zero initialized
This commit is contained in:
parent
8ff667e463
commit
567575e33d
@ -56,14 +56,14 @@ struct _GstD3D11DecoderPrivate
|
|||||||
static GQuark
|
static GQuark
|
||||||
_decoder_output_view_get (void)
|
_decoder_output_view_get (void)
|
||||||
{
|
{
|
||||||
static gsize g_quark;
|
static volatile gsize g_quark = 0;
|
||||||
|
|
||||||
if (g_once_init_enter (&g_quark)) {
|
if (g_once_init_enter (&g_quark)) {
|
||||||
gsize quark =
|
gsize quark =
|
||||||
(gsize) g_quark_from_static_string ("GstD3D11DecoderOutputView");
|
(gsize) g_quark_from_static_string ("GstD3D11DecoderOutputView");
|
||||||
g_once_init_leave (&g_quark, quark);
|
g_once_init_leave (&g_quark, quark);
|
||||||
}
|
}
|
||||||
return g_quark;
|
return (GQuark) g_quark;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gst_d3d11_decoder_constructed (GObject * object);
|
static void gst_d3d11_decoder_constructed (GObject * object);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user