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:
parent
8d4c724593
commit
474d5be546
|
@ -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")) {
|
||||
|
|
Loading…
Reference in New Issue