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:
Zebediah Figura 2022-05-03 16:21:58 -05:00 committed by Alexandre Julliard
parent a4201aa6de
commit 2cfcdc6462
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;