mpeg2dec: Release codec state on negotiation failures
Else it leaks CID #1212169
This commit is contained in:
parent
d1950e138e
commit
a665347345
@ -808,6 +808,7 @@ invalid_size:
|
|||||||
negotiation_fail:
|
negotiation_fail:
|
||||||
{
|
{
|
||||||
GST_WARNING_OBJECT (mpeg2dec, "Failed to negotiate with downstream");
|
GST_WARNING_OBJECT (mpeg2dec, "Failed to negotiate with downstream");
|
||||||
|
gst_video_codec_state_unref (state);
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user