Skip to content

Commit d13dcc8

Browse files
committed
winegstreamer/wm_reader: Use codec format only for compressed types.
CW-Bug-Id: #24120
1 parent 2e32720 commit d13dcc8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

dlls/winegstreamer/wm_reader.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,9 @@ static HRESULT WINAPI stream_props_GetMediaType(IWMMediaProps *iface, WM_MEDIA_T
551551
TRACE("iface %p, mt %p, size %p.\n", iface, mt, size);
552552

553553
wg_parser_stream_get_codec_format(config->stream->wg_stream, &codec_format);
554-
format = (codec_format.major_type != WG_MAJOR_TYPE_UNKNOWN) ? &codec_format : &config->stream->format;
554+
format = (codec_format.major_type != WG_MAJOR_TYPE_UNKNOWN
555+
&& codec_format.major_type != WG_MAJOR_TYPE_VIDEO
556+
&& codec_format.major_type != WG_MAJOR_TYPE_AUDIO) ? &codec_format : &config->stream->format;
555557
if (!amt_from_wg_format(&stream_mt, format, true))
556558
return E_OUTOFMEMORY;
557559

0 commit comments

Comments
 (0)