From 92d926d7331bda02b2087cb1fb07d4e84bb196e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 2 Dec 2015 14:35:22 +0200 Subject: [PATCH] videoframe-audiolevel: Fix compilation of static plugin and some compiler warnings Use G_GSIZE_FORMAT for gsize instead of %ld and make sure that the plugin name is a valid C identifier, i.e. contains no spaces or dashes. --- gst/videoframe_audiolevel/gstvideoframe-audiolevel.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gst/videoframe_audiolevel/gstvideoframe-audiolevel.c b/gst/videoframe_audiolevel/gstvideoframe-audiolevel.c index 762bf90c1c..1260529afe 100644 --- a/gst/videoframe_audiolevel/gstvideoframe-audiolevel.c +++ b/gst/videoframe_audiolevel/gstvideoframe-audiolevel.c @@ -688,8 +688,9 @@ gst_videoframe_audiolevel_asink_chain (GstPad * pad, GstObject * parent, if (bytes == 0) { cur_time = *vt0; } else { - GST_DEBUG_OBJECT (self, "Flushed %ld out of %ld bytes", bytes, - available_bytes); + GST_DEBUG_OBJECT (self, + "Flushed %" G_GSIZE_FORMAT " out of %" G_GSIZE_FORMAT " bytes", + bytes, available_bytes); gst_adapter_flush (self->adapter, MIN (bytes, available_bytes)); self->total_frames += num_frames; if (available_bytes <= bytes) { @@ -709,7 +710,8 @@ gst_videoframe_audiolevel_asink_chain (GstPad * pad, GstObject * parent, bytes = 0; /* We just need to discard vt0 */ } available_bytes = gst_adapter_available (self->adapter); - GST_DEBUG_OBJECT (self, "Adapter contains %ld out of %ld bytes", + GST_DEBUG_OBJECT (self, + "Adapter contains %" G_GSIZE_FORMAT " out of %" G_GSIZE_FORMAT " bytes", available_bytes, bytes); if (available_bytes < bytes) { @@ -779,7 +781,7 @@ gst_videoframe_audiolevel_plugin_init (GstPlugin * plugin) GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, GST_VERSION_MINOR, - videoframe - audiolevel, + videoframe_audiolevel, "Video frame-synchronized audio level", gst_videoframe_audiolevel_plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN);