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:
Benjamin Otte 2004-01-16 23:02:54 +00:00
parent b26be1ef68
commit 393a5a8fa3
2 changed files with 6 additions and 1 deletions

View file

@ -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>
* gst/gstclock.c: (gst_clock_get_time):

View file

@ -2605,7 +2605,7 @@ gst_pad_alloc_buffer (GstPad *pad, guint64 offset, gint size)
peer = GST_RPAD_PEER (pad);
if (!peer)
return NULL;
return gst_buffer_new_and_alloc(size);
GST_CAT_DEBUG (GST_CAT_BUFFER, "(%s:%s): getting buffer",
GST_DEBUG_PAD_NAME (pad));