projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c228ee
)
rtmpsrc: fix buffer leak on read error or EOS
author
Ilya Smelykh
<ilya@videoexpertsgroup.com>
Wed, 20 Mar 2019 12:45:12 +0000
(19:45 +0700)
committer
Ilya Smelykh
<ilya@videoexpertsgroup.com>
Wed, 20 Mar 2019 12:45:12 +0000
(19:45 +0700)
ext/rtmp/gstrtmpsrc.c
patch
|
blob
|
history
diff --git
a/ext/rtmp/gstrtmpsrc.c
b/ext/rtmp/gstrtmpsrc.c
index
12931a2
..
0ad97ab
100644
(file)
--- a/
ext/rtmp/gstrtmpsrc.c
+++ b/
ext/rtmp/gstrtmpsrc.c
@@
-405,12
+405,14
@@
gst_rtmp_src_create (GstPushSrc * pushsrc, GstBuffer ** buffer)
read_failed:
{
+ gst_buffer_unmap (buf, &map);
gst_buffer_unref (buf);
GST_ELEMENT_ERROR (src, RESOURCE, READ, (NULL), ("Failed to read data"));
return GST_FLOW_ERROR;
}
eos:
{
+ gst_buffer_unmap (buf, &map);
gst_buffer_unref (buf);
if (src->cur_offset == 0) {
GST_ELEMENT_ERROR (src, RESOURCE, READ, (NULL),