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:
dd3cba7
)
bufferlist: fixes for new API
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Thu, 31 Mar 2011 15:47:43 +0000
(17:47 +0200)
committer
Tim-Philipp Müller
<tim@centricular.net>
Tue, 11 Sep 2012 00:54:34 +0000
(
01:54
+0100)
gst/gdp/gstgdppay.c
patch
|
blob
|
history
diff --git
a/gst/gdp/gstgdppay.c
b/gst/gdp/gstgdppay.c
index
b0e3fc8
..
994f56f
100644
(file)
--- a/
gst/gdp/gstgdppay.c
+++ b/
gst/gdp/gstgdppay.c
@@
-300,8
+300,10
@@
gst_gdp_buffer_from_event (GstGDPPay * this, GstEvent * event)
payloadbuf = gst_buffer_new ();
plen = gst_dp_header_payload_length (header);
- gst_buffer_take_memory (payloadbuf,
- gst_memory_new_wrapped (0, payload, g_free, plen, 0, plen));
+ if (plen && payload != NULL) {
+ gst_buffer_take_memory (payloadbuf,
+ gst_memory_new_wrapped (0, payload, g_free, plen, 0, plen));
+ }
return gst_buffer_join (headerbuf, payloadbuf);