winegstreamer: Make some wg_format variables static const.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
a4201aa6de
commit
2cfcdc6462
|
@ -596,7 +596,7 @@ static const IMFTransformVtbl transform_vtbl =
|
||||||
|
|
||||||
HRESULT h264_decoder_create(REFIID riid, void **ret)
|
HRESULT h264_decoder_create(REFIID riid, void **ret)
|
||||||
{
|
{
|
||||||
struct wg_format output_format =
|
static const struct wg_format output_format =
|
||||||
{
|
{
|
||||||
.major_type = WG_MAJOR_TYPE_VIDEO,
|
.major_type = WG_MAJOR_TYPE_VIDEO,
|
||||||
.u.video =
|
.u.video =
|
||||||
|
@ -606,7 +606,7 @@ HRESULT h264_decoder_create(REFIID riid, void **ret)
|
||||||
.height = 1080,
|
.height = 1080,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
struct wg_format input_format = {.major_type = WG_MAJOR_TYPE_H264};
|
static const struct wg_format input_format = {.major_type = WG_MAJOR_TYPE_H264};
|
||||||
struct wg_transform *transform;
|
struct wg_transform *transform;
|
||||||
struct h264_decoder *decoder;
|
struct h264_decoder *decoder;
|
||||||
|
|
||||||
|
|
|
@ -854,7 +854,7 @@ static const IPropertyBagVtbl property_bag_vtbl =
|
||||||
|
|
||||||
HRESULT wma_decoder_create(IUnknown *outer, IUnknown **out)
|
HRESULT wma_decoder_create(IUnknown *outer, IUnknown **out)
|
||||||
{
|
{
|
||||||
struct wg_format output_format =
|
static const struct wg_format output_format =
|
||||||
{
|
{
|
||||||
.major_type = WG_MAJOR_TYPE_AUDIO,
|
.major_type = WG_MAJOR_TYPE_AUDIO,
|
||||||
.u.audio =
|
.u.audio =
|
||||||
|
@ -865,7 +865,7 @@ HRESULT wma_decoder_create(IUnknown *outer, IUnknown **out)
|
||||||
.rate = 44100,
|
.rate = 44100,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
struct wg_format input_format = {.major_type = WG_MAJOR_TYPE_WMA};
|
static const struct wg_format input_format = {.major_type = WG_MAJOR_TYPE_WMA};
|
||||||
struct wg_transform *transform;
|
struct wg_transform *transform;
|
||||||
struct wma_decoder *decoder;
|
struct wma_decoder *decoder;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue