gst/base/gstcollectpads.c: Don't try to ref NULL.

Original commit message from CVS:
* gst/base/gstcollectpads.c: (gst_collectpads_peek):
Don't try to ref NULL.
This commit is contained in:
Tim-Philipp Müller 2005-11-02 12:20:54 +00:00
parent d9847e6d0e
commit 327501d2bd
3 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2005-11-02 Tim-Philipp Müller <tim at centricular dot net>
* gst/base/gstcollectpads.c: (gst_collectpads_peek):
Don't try to ref NULL.
2005-11-02 Thomas Vander Stichele <thomas at apestaart dot org>
* win32/common/config.h.in:

View file

@ -368,7 +368,9 @@ gst_collectpads_peek (GstCollectPads * pads, GstCollectData * data)
GstBuffer *result;
result = data->buffer;
gst_buffer_ref (result);
if (result)
gst_buffer_ref (result);
return result;
}

View file

@ -368,7 +368,9 @@ gst_collectpads_peek (GstCollectPads * pads, GstCollectData * data)
GstBuffer *result;
result = data->buffer;
gst_buffer_ref (result);
if (result)
gst_buffer_ref (result);
return result;
}