Fix some compiler warnings.
authorJan Schmidt <thaytan@mad.scientist.com>
Fri, 16 May 2008 17:50:20 +0000 (17:50 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Fri, 16 May 2008 17:50:20 +0000 (17:50 +0000)
Original commit message from CVS:
* ext/wavpack/gstwavpackstreamreader.c:
* tests/examples/spectrum/demo-audiotest.c:
* tests/examples/spectrum/demo-osssrc.c:
Fix some compiler warnings.

ChangeLog
common
ext/wavpack/gstwavpackstreamreader.c
tests/examples/spectrum/demo-audiotest.c
tests/examples/spectrum/demo-osssrc.c

index f8c5c23..eb5b545 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-05-16  Jan Schmidt  <jan.schmidt@sun.com>
+
+       * ext/wavpack/gstwavpackstreamreader.c:
+       * tests/examples/spectrum/demo-audiotest.c:
+       * tests/examples/spectrum/demo-osssrc.c:
+       Fix some compiler warnings.
+
 2008-05-14  Wim Taymans  <wim.taymans@collabora.co.uk>
 
        * gst/rtp/gstrtph264depay.c: (gst_rtp_h264_depay_process):
diff --git a/common b/common
index 0823ac6..3b36310 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit 0823ac6b46b7332109bbc5f1ef40e24e648fae51
+Subproject commit 3b3631082d04b426f450810e8836de94e9c5d60a
index 868f7bf..6fda41c 100644 (file)
@@ -43,7 +43,7 @@ gst_wavpack_stream_reader_read_bytes (void *id, void *data, int32_t bcount)
     rid->position += to_read;
     return to_read;
   } else {
-    GST_WARNING ("Couldn't read %d bytes");
+    GST_WARNING ("Couldn't read %d bytes", bcount);
     return 0;
   }
 }
index bc2e9ab..a8d76c1 100644 (file)
@@ -28,7 +28,9 @@
 #include <gst/gst.h>
 #include <gtk/gtk.h>
 
+#ifndef DEFAULT_AUDIOSINK
 #define DEFAULT_AUDIOSINK "autoaudiosink"
+#endif
 
 static GtkWidget *drawingarea = NULL;
 static guint spect_height = 64;
index eb28cff..6b831f1 100644 (file)
 #include <gst/gst.h>
 #include <gtk/gtk.h>
 
+#ifndef DEFAULT_AUDIOSRC
 #define DEFAULT_AUDIOSRC "alsasrc"
+#endif
+
 static guint spect_height = 64;
 static guint spect_bands = 256;
 static gfloat height_scale = 1.0;