projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d1950e1
)
mpeg2dec: Release codec state on negotiation failures
author
Edward Hervey
<bilboed@bilboed.com>
Fri, 9 May 2014 12:54:54 +0000
(14:54 +0200)
committer
Edward Hervey
<bilboed@bilboed.com>
Fri, 9 May 2014 12:54:54 +0000
(14:54 +0200)
Else it leaks
CID #
1212169
ext/mpeg2dec/gstmpeg2dec.c
patch
|
blob
|
history
diff --git
a/ext/mpeg2dec/gstmpeg2dec.c
b/ext/mpeg2dec/gstmpeg2dec.c
index b50b4754f8d38316e661dd9fcc28cc08a8cce9c2..28616c5694ee0c45ad67585734e61e6dd0c33335 100644
(file)
--- 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");
negotiation_fail:
{
GST_WARNING_OBJECT (mpeg2dec, "Failed to negotiate with downstream");
+ gst_video_codec_state_unref (state);
return GST_FLOW_ERROR;
}
}
return GST_FLOW_ERROR;
}
}