mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-03 16:09:39 +00:00
1fe4050c0a
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.
30 lines
487 B
C
30 lines
487 B
C
#ifdef HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
|
|
#include "rfbbuffer.h"
|
|
|
|
RfbBuffer *
|
|
rfb_buffer_new (void)
|
|
{
|
|
return g_new0 (RfbBuffer, 1);
|
|
}
|
|
|
|
RfbBuffer *
|
|
rfb_buffer_new_and_alloc (int len)
|
|
{
|
|
RfbBuffer *buffer = g_new0 (RfbBuffer, 1);
|
|
|
|
buffer->data = g_malloc (len);
|
|
buffer->free_data = (RfbBufferFreeFunc) g_free;
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void
|
|
rfb_buffer_free (RfbBuffer * buffer)
|
|
{
|
|
g_return_if_fail (buffer != NULL);
|
|
|
|
buffer->free_data (buffer->data, buffer->buffer_private);
|
|
}
|