mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -56,14 +56,14 @@ struct _GstD3D11DecoderPrivate
|
|||
static GQuark
|
||||
_decoder_output_view_get (void)
|
||||
{
|
||||
static gsize g_quark;
|
||||
static volatile gsize g_quark = 0;
|
||||
|
||||
if (g_once_init_enter (&g_quark)) {
|
||||
gsize quark =
|
||||
(gsize) g_quark_from_static_string ("GstD3D11DecoderOutputView");
|
||||
g_once_init_leave (&g_quark, quark);
|
||||
}
|
||||
return g_quark;
|
||||
return (GQuark) g_quark;
|
||||
}
|
||||
|
||||
static void gst_d3d11_decoder_constructed (GObject * object);
|
||||
|
|
Loading…
Reference in a new issue