[vlc-commits] [Git][videolan/vlc][master] 2 commits: gstreamer: fix -Wformat warnings
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Thu Apr 6 21:53:21 UTC 2023
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
7f5485d6 by Johannes Kauffmann at 2023-04-06T21:22:33+00:00
gstreamer: fix -Wformat warnings
- - - - -
34e98057 by Johannes Kauffmann at 2023-04-06T21:22:33+00:00
gstreamer: remove extra semicolons
- - - - -
4 changed files:
- modules/codec/gstreamer/gstvlcpictureplaneallocator.c
- modules/codec/gstreamer/gstvlcpictureplaneallocator.h
- modules/codec/gstreamer/gstvlcvideopool.c
- modules/codec/gstreamer/gstvlcvideosink.c
Changes:
=====================================
modules/codec/gstreamer/gstvlcpictureplaneallocator.c
=====================================
@@ -34,7 +34,7 @@ vlc_fourcc_t GetGstVLCFourcc( const char* );
#define gst_vlc_picture_plane_allocator_parent_class parent_class
G_DEFINE_TYPE (GstVlcPicturePlaneAllocator, gst_vlc_picture_plane_allocator, \
- GST_TYPE_ALLOCATOR);
+ GST_TYPE_ALLOCATOR)
static void gst_vlc_picture_plane_allocator_finalize( GObject *p_object );
static GstMemory* gst_vlc_picture_plane_allocator_dummy_alloc(
=====================================
modules/codec/gstreamer/gstvlcpictureplaneallocator.h
=====================================
@@ -61,7 +61,7 @@ struct _GstVlcPicturePlane
struct _GstVlcPicturePlaneAllocator
{
GstAllocator parent;
- picture_t pic_info;;
+ picture_t pic_info;
decoder_t *p_dec;
};
=====================================
modules/codec/gstreamer/gstvlcvideopool.c
=====================================
@@ -32,7 +32,7 @@ static void gst_vlc_video_pool_finalize( GObject *p_object );
#define gst_vlc_video_pool_parent_class parent_class
G_DEFINE_TYPE (GstVlcVideoPool, gst_vlc_video_pool,
- GST_TYPE_BUFFER_POOL);
+ GST_TYPE_BUFFER_POOL)
static const gchar** gst_vlc_video_pool_get_options (GstBufferPool *p_pool)
{
@@ -189,7 +189,7 @@ static void gst_vlc_video_pool_free_buffer( GstBufferPool *p_pool,
gst_vlc_picture_plane_allocator_release( p_vpool->p_allocator, p_buffer );
- msg_Dbg( p_vpool->p_dec, "freed buffer %p", p_buffer );
+ msg_Dbg( p_vpool->p_dec, "freed buffer %p", (void*)p_buffer );
GST_BUFFER_POOL_CLASS( parent_class )->free_buffer( p_pool, p_buffer );
@@ -223,7 +223,7 @@ static GstFlowReturn gst_vlc_video_pool_alloc_buffer( GstBufferPool *p_pool,
p_info->offset, p_info->stride );
}
- msg_Dbg( p_vpool->p_dec, "allocated buffer %p", *p_buffer );
+ msg_Dbg( p_vpool->p_dec, "allocated buffer %p", (void*)*p_buffer );
return GST_FLOW_OK;
}
=====================================
modules/codec/gstreamer/gstvlcvideosink.c
=====================================
@@ -71,7 +71,7 @@ static void gst_vlc_video_sink_get_property( GObject *p_object, guint prop_id,
static void gst_vlc_video_sink_finalize( GObject *p_obj );
#define gst_vlc_video_sink_parent_class parent_class
-G_DEFINE_TYPE( GstVlcVideoSink, gst_vlc_video_sink, GST_TYPE_BASE_SINK );
+G_DEFINE_TYPE( GstVlcVideoSink, gst_vlc_video_sink, GST_TYPE_BASE_SINK )
static void gst_vlc_video_sink_class_init( GstVlcVideoSinkClass *p_klass )
{
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/bc5da1405ea79e7b29f531323e2a440fda24bb4f...34e98057dd9dc50b5e33209072441cdc44d20e81
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/bc5da1405ea79e7b29f531323e2a440fda24bb4f...34e98057dd9dc50b5e33209072441cdc44d20e81
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list