gst-play: Fix format string compiler warning
authorSebastian Dröge <sebastian@centricular.com>
Mon, 22 Sep 2014 07:40:01 +0000 (10:40 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 22 Sep 2014 07:40:01 +0000 (10:40 +0300)
gst-play.c:92:28: error: format string is not a string literal
      [-Werror,-Wformat-nonliteral]
  len = g_vasprintf (&str, format, args);
                           ^~~~~~

tools/gst-play.c

index 6bcf736..8c97103 100644 (file)
@@ -77,6 +77,7 @@ static void play_about_to_finish (GstElement * playbin, gpointer user_data);
 static void play_reset (GstPlay * play);
 static void play_set_relative_volume (GstPlay * play, gdouble volume_step);
 
+G_GNUC_PRINTF (1, 2)
 static void
 gst_play_printf (const gchar * format, ...)
 {