diff options
author | Andre Moreira Magalhaes <andrunko@gmail.com> | 2006-11-17 03:15:40 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2006-11-17 03:15:40 +0000 |
commit | fd89575485e4ad018b0457034e28b4b65989dd74 (patch) | |
tree | 702267162df1141fb67927356d5a5defc8bd7b74 /gst/librfb/rfbbuffer.c | |
parent | de9ee6e6e42b8485daf19586dc976fe05bd14087 (diff) | |
download | gst-plugins-bad-fd89575485e4ad018b0457034e28b4b65989dd74.tar.gz gst-plugins-bad-fd89575485e4ad018b0457034e28b4b65989dd74.tar.bz2 gst-plugins-bad-fd89575485e4ad018b0457034e28b4b65989dd74.zip |
Port librfb to 0.10 (#376106).
Original commit message from CVS:
Patch by: Andre Moreira Magalhaes <andrunko@gmail.com>
* configure.ac:
* gst/librfb/Makefile.am:
* gst/librfb/gstrfbsrc.c:
* gst/librfb/rfb.c:
* gst/librfb/rfb.h:
* gst/librfb/rfbbuffer.c:
* gst/librfb/rfbbuffer.h:
* gst/librfb/rfbbytestream.c:
* gst/librfb/rfbbytestream.h:
* gst/librfb/rfbcontext.h:
* gst/librfb/rfbdecoder.c:
* gst/librfb/rfbdecoder.h:
* gst/librfb/rfbutil.h:
Port librfb to 0.10 (#376106).
Diffstat (limited to 'gst/librfb/rfbbuffer.c')
-rw-r--r-- | gst/librfb/rfbbuffer.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gst/librfb/rfbbuffer.c b/gst/librfb/rfbbuffer.c index e38def36..4ab4eb0e 100644 --- a/gst/librfb/rfbbuffer.c +++ b/gst/librfb/rfbbuffer.c @@ -1,11 +1,13 @@ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif -#include <rfbbuffer.h> +#include "rfbbuffer.h" RfbBuffer * rfb_buffer_new (void) { return g_new0 (RfbBuffer, 1); - } RfbBuffer * @@ -22,6 +24,7 @@ rfb_buffer_new_and_alloc (int len) void rfb_buffer_free (RfbBuffer * buffer) { - buffer->free_data (buffer->data, buffer->buffer_private); + g_return_if_fail (buffer != NULL); + buffer->free_data (buffer->data, buffer->buffer_private); } |