mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 22:16:22 +00:00
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:
parent
d9847e6d0e
commit
327501d2bd
3 changed files with 11 additions and 2 deletions
|
@ -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>
|
2005-11-02 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
* win32/common/config.h.in:
|
* win32/common/config.h.in:
|
||||||
|
|
|
@ -368,7 +368,9 @@ gst_collectpads_peek (GstCollectPads * pads, GstCollectData * data)
|
||||||
GstBuffer *result;
|
GstBuffer *result;
|
||||||
|
|
||||||
result = data->buffer;
|
result = data->buffer;
|
||||||
gst_buffer_ref (result);
|
|
||||||
|
if (result)
|
||||||
|
gst_buffer_ref (result);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
@ -368,7 +368,9 @@ gst_collectpads_peek (GstCollectPads * pads, GstCollectData * data)
|
||||||
GstBuffer *result;
|
GstBuffer *result;
|
||||||
|
|
||||||
result = data->buffer;
|
result = data->buffer;
|
||||||
gst_buffer_ref (result);
|
|
||||||
|
if (result)
|
||||||
|
gst_buffer_ref (result);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue