winegstreamer: If no audio media type was allocated, don't free it.

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alex Henrie 2016-11-15 22:41:50 -07:00 committed by Alexandre Julliard
parent 8d4c724593
commit 474d5be546
1 changed files with 2 additions and 1 deletions

View File

@ -266,7 +266,8 @@ static gboolean accept_caps_sink(GstPad *pad, GstCaps *caps)
return FALSE;
}
ret = amt_from_gst_caps_audio(caps, &amt);
FreeMediaType(&amt);
if (ret)
FreeMediaType(&amt);
TRACE("+%i\n", ret);
return ret;
} else if (!strcmp(typename, "video/x-raw")) {