[vlc-commits] Gst: kill simple warnings
Jean-Baptiste Kempf
git at videolan.org
Sun Feb 14 20:22:34 CET 2016
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Feb 14 20:18:36 2016 +0100| [8b64657bb2e53ed2cac727ba83b0a81830976f04] | committer: Jean-Baptiste Kempf
Gst: kill simple warnings
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8b64657bb2e53ed2cac727ba83b0a81830976f04
---
modules/codec/gstreamer/gstdecode.c | 1 -
modules/codec/gstreamer/gstvlcpictureplaneallocator.c | 2 ++
modules/codec/gstreamer/gstvlcvideopool.c | 6 +++++-
modules/codec/gstreamer/gstvlcvideosink.c | 4 ++++
4 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/modules/codec/gstreamer/gstdecode.c b/modules/codec/gstreamer/gstdecode.c
index 10f59a6..0db9ebe 100644
--- a/modules/codec/gstreamer/gstdecode.c
+++ b/modules/codec/gstreamer/gstdecode.c
@@ -651,7 +651,6 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
picture_t *p_pic = NULL;
decoder_sys_t *p_sys = p_dec->p_sys;
GstMessage *p_msg;
- gboolean b_ret;
GstBuffer *p_buf;
if( !pp_block )
diff --git a/modules/codec/gstreamer/gstvlcpictureplaneallocator.c b/modules/codec/gstreamer/gstvlcpictureplaneallocator.c
index d802ac6..4e827eb 100644
--- a/modules/codec/gstreamer/gstvlcpictureplaneallocator.c
+++ b/modules/codec/gstreamer/gstvlcpictureplaneallocator.c
@@ -135,6 +135,8 @@ static GstMemory* gst_vlc_picture_plane_copy(
void gst_vlc_picture_plane_allocator_release(
GstVlcPicturePlaneAllocator *p_allocator, GstBuffer *p_buffer )
{
+ VLC_UNUSED( p_allocator );
+
GstVlcPicturePlane* p_mem =
(GstVlcPicturePlane*) gst_buffer_peek_memory( p_buffer, 0 );
guint i_plane;
diff --git a/modules/codec/gstreamer/gstvlcvideopool.c b/modules/codec/gstreamer/gstvlcvideopool.c
index 2347b89..ff80451 100644
--- a/modules/codec/gstreamer/gstvlcvideopool.c
+++ b/modules/codec/gstreamer/gstvlcvideopool.c
@@ -37,6 +37,8 @@ G_DEFINE_TYPE (GstVlcVideoPool, gst_vlc_video_pool,
static const gchar** gst_vlc_video_pool_get_options (GstBufferPool *p_pool)
{
+ VLC_UNUSED( p_pool );
+
static const gchar *options[] = { GST_BUFFER_POOL_OPTION_VIDEO_META,
NULL
};
@@ -133,7 +135,6 @@ static GstFlowReturn gst_vlc_video_pool_acquire_buffer( GstBufferPool *p_pool,
GstBuffer **p_buffer, GstBufferPoolAcquireParams *p_params )
{
GstVlcVideoPool *p_vpool = GST_VLC_VIDEO_POOL_CAST( p_pool );
- GstVideoInfo *p_info;
GstFlowReturn result;
result = GST_BUFFER_POOL_CLASS( parent_class)->acquire_buffer( p_pool,
@@ -176,6 +177,8 @@ static void gst_vlc_video_pool_free_buffer( GstBufferPool *p_pool,
static GstFlowReturn gst_vlc_video_pool_alloc_buffer( GstBufferPool *p_pool,
GstBuffer **p_buffer, GstBufferPoolAcquireParams *p_params)
{
+ VLC_UNUSED( p_params );
+
GstVlcVideoPool *p_vpool = GST_VLC_VIDEO_POOL_CAST( p_pool );
GstVideoInfo *p_info = &p_vpool->info;
@@ -220,6 +223,7 @@ static void gst_vlc_video_pool_class_init( GstVlcVideoPoolClass *p_klass )
static void gst_vlc_video_pool_init( GstVlcVideoPool *p_pool )
{
+ VLC_UNUSED( p_pool );
}
static void gst_vlc_video_pool_finalize( GObject *p_object )
diff --git a/modules/codec/gstreamer/gstvlcvideosink.c b/modules/codec/gstreamer/gstvlcvideosink.c
index e23020b..5dfd8cd 100644
--- a/modules/codec/gstreamer/gstvlcvideosink.c
+++ b/modules/codec/gstreamer/gstvlcvideosink.c
@@ -280,6 +280,8 @@ static GstFlowReturn gst_vlc_video_sink_chain( GstBaseSink *p_bsink,
static void gst_vlc_video_sink_set_property( GObject *p_object, guint i_prop_id,
const GValue *p_value, GParamSpec *p_pspec )
{
+ VLC_UNUSED( p_pspec );
+
GstVlcVideoSink *p_vsink = GST_VLC_VIDEO_SINK( p_object );
switch( i_prop_id )
@@ -312,6 +314,8 @@ static void gst_vlc_video_sink_set_property( GObject *p_object, guint i_prop_id,
static void gst_vlc_video_sink_get_property( GObject *p_object, guint i_prop_id,
GValue *p_value, GParamSpec *p_pspec )
{
+ VLC_UNUSED( p_pspec );
+
GstVlcVideoSink *p_vsink = GST_VLC_VIDEO_SINK( p_object );
switch( i_prop_id )
More information about the vlc-commits
mailing list