Commit 474d5be5 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

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

parent 8d4c7245
......@@ -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")) {
......
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