Commit 3bcabb24 authored by Gijs Vermeulen's avatar Gijs Vermeulen Committed by Alexandre Julliard

winegstreamer: Initialise type_handler to NULL in media_stream_init_desc().

Otherwise it is used uninitialised if a failure occurs. Signed-off-by: 's avatarGijs Vermeulen <gijsvrm@gmail.com> Signed-off-by: 's avatarNikolay Sivov <nsivov@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 4610dc79
......@@ -858,7 +858,7 @@ fail:
static HRESULT media_stream_init_desc(struct media_stream *stream)
{
GstCaps *current_caps = gst_pad_get_current_caps(stream->their_src);
IMFMediaTypeHandler *type_handler;
IMFMediaTypeHandler *type_handler = NULL;
IMFMediaType **stream_types = NULL;
IMFMediaType *stream_type = NULL;
DWORD type_count = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment