diff options
author | Jan Schmidt <thaytan@mad.scientist.com> | 2007-10-08 17:46:45 +0000 |
---|---|---|
committer | Jan Schmidt <thaytan@mad.scientist.com> | 2007-10-08 17:46:45 +0000 |
commit | 1fe4050c0a299016b82bfdb70dd46d414a53a082 (patch) | |
tree | add3d2b8eac11170e06f70ef172f9f6bb066bf29 /gst/librfb | |
parent | 4865b3bf146fe7392aed1a9e2df2efcb63d19ead (diff) | |
download | gst-plugins-bad-1fe4050c0a299016b82bfdb70dd46d414a53a082.tar.gz gst-plugins-bad-1fe4050c0a299016b82bfdb70dd46d414a53a082.tar.bz2 gst-plugins-bad-1fe4050c0a299016b82bfdb70dd46d414a53a082.zip |
gst/: Fix compiler warnings shown by Forte.
Original commit message from CVS:
* gst/librfb/rfbbuffer.c: (rfb_buffer_new_and_alloc):
* gst/librfb/rfbbuffer.h:
* gst/librfb/rfbdecoder.c: (rfb_socket_get_buffer):
* gst/mpegvideoparse/mpegvideoparse.c: (gst_mpegvideoparse_chain):
* gst/nsf/nes6502.c: (nes6502_execute):
* gst/real/gstrealaudiodec.c: (gst_real_audio_dec_setcaps):
* gst/real/gstrealvideodec.c: (open_library):
* gst/real/gstrealvideodec.h:
* gst/rtpmanager/gstrtpsession.c: (create_recv_rtp_sink),
(create_recv_rtcp_sink), (create_send_rtp_sink):
Fix compiler warnings shown by Forte.
Diffstat (limited to 'gst/librfb')
-rw-r--r-- | gst/librfb/rfbbuffer.c | 2 | ||||
-rw-r--r-- | gst/librfb/rfbbuffer.h | 3 | ||||
-rw-r--r-- | gst/librfb/rfbdecoder.c | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/gst/librfb/rfbbuffer.c b/gst/librfb/rfbbuffer.c index 4ab4eb0e..d8ca081d 100644 --- a/gst/librfb/rfbbuffer.c +++ b/gst/librfb/rfbbuffer.c @@ -16,7 +16,7 @@ rfb_buffer_new_and_alloc (int len) RfbBuffer *buffer = g_new0 (RfbBuffer, 1); buffer->data = g_malloc (len); - buffer->free_data = (void *) g_free; + buffer->free_data = (RfbBufferFreeFunc) g_free; return buffer; } diff --git a/gst/librfb/rfbbuffer.h b/gst/librfb/rfbbuffer.h index f220c0e7..5c09c77c 100644 --- a/gst/librfb/rfbbuffer.h +++ b/gst/librfb/rfbbuffer.h @@ -6,10 +6,11 @@ G_BEGIN_DECLS typedef struct _RfbBuffer RfbBuffer; +typedef void(*RfbBufferFreeFunc)(guint8 *data, gpointer priv); struct _RfbBuffer { - void (*free_data) (guint8 *data, gpointer priv); + RfbBufferFreeFunc free_data; gpointer buffer_private; guint8 *data; diff --git a/gst/librfb/rfbdecoder.c b/gst/librfb/rfbdecoder.c index 4ea3910b..8b9254a1 100644 --- a/gst/librfb/rfbdecoder.c +++ b/gst/librfb/rfbdecoder.c @@ -642,7 +642,7 @@ rfb_socket_get_buffer (gint length, gpointer user_data) buffer = rfb_buffer_new (); buffer->data = g_malloc (length); - buffer->free_data = (void *) g_free; + buffer->free_data = (RfbBufferFreeFunc) g_free; // g_print ("calling read(%d, %p, %d)\n", fd, buffer->data, length); ret = read (fd, buffer->data, length); |