mpeg2dec: Release codec state on negotiation failures

Else it leaks

CID #1212169
This commit is contained in:
Edward Hervey 2014-05-09 14:54:54 +02:00
parent d1950e138e
commit a665347345

View File

@ -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;
} }
} }