mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 21:35:44 +00:00
gst/gstpad.c: Return a newly allocated buffer when the pad has no peer.
Original commit message from CVS: 2004-01-16 Benjamin Otte <in7y118@public.uni-hamburg.de> * gst/gstpad.c: (gst_pad_alloc_buffer): Return a newly allocated buffer when the pad has no peer.
This commit is contained in:
parent
b26be1ef68
commit
393a5a8fa3
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2004-01-16 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
||||||
|
|
||||||
|
* gst/gstpad.c: (gst_pad_alloc_buffer):
|
||||||
|
Return a newly allocated buffer when the pad has no peer.
|
||||||
|
|
||||||
2004-01-16 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
2004-01-16 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
||||||
|
|
||||||
* gst/gstclock.c: (gst_clock_get_time):
|
* gst/gstclock.c: (gst_clock_get_time):
|
||||||
|
|
|
@ -2605,7 +2605,7 @@ gst_pad_alloc_buffer (GstPad *pad, guint64 offset, gint size)
|
||||||
peer = GST_RPAD_PEER (pad);
|
peer = GST_RPAD_PEER (pad);
|
||||||
|
|
||||||
if (!peer)
|
if (!peer)
|
||||||
return NULL;
|
return gst_buffer_new_and_alloc(size);
|
||||||
|
|
||||||
GST_CAT_DEBUG (GST_CAT_BUFFER, "(%s:%s): getting buffer",
|
GST_CAT_DEBUG (GST_CAT_BUFFER, "(%s:%s): getting buffer",
|
||||||
GST_DEBUG_PAD_NAME (pad));
|
GST_DEBUG_PAD_NAME (pad));
|
||||||
|
|
Loading…
Reference in a new issue