summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2014-05-09 14:54:54 +0200
committerEdward Hervey <bilboed@bilboed.com>2014-05-09 14:54:54 +0200
commita6653473456693ccffea6a855429e2cc2037bd7d (patch)
tree5bc8db86e1334d30d242ac694933b8b016254a59
parentd1950e138e1a312a87176d776cb25a04a8fc3cf2 (diff)
mpeg2dec: Release codec state on negotiation failures
Else it leaks CID #1212169
-rw-r--r--ext/mpeg2dec/gstmpeg2dec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/mpeg2dec/gstmpeg2dec.c b/ext/mpeg2dec/gstmpeg2dec.c
index b50b4754..28616c56 100644
--- a/ext/mpeg2dec/gstmpeg2dec.c
+++ b/ext/mpeg2dec/gstmpeg2dec.c
@@ -808,6 +808,7 @@ invalid_size:
negotiation_fail:
{
GST_WARNING_OBJECT (mpeg2dec, "Failed to negotiate with downstream");
+ gst_video_codec_state_unref (state);
return GST_FLOW_ERROR;
}
}