audio: don't use uninitialized variable in debug log
authorTim-Philipp Müller <tim@centricular.net>
Sat, 29 Dec 2012 14:29:53 +0000 (14:29 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Sat, 29 Dec 2012 14:29:53 +0000 (14:29 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=667317

gst-libs/gst/audio/audio-info.c

index 3ab11bf..646ed5d 100644 (file)
@@ -454,7 +454,8 @@ gst_audio_info_convert (const GstAudioInfo * info,
       break;
   }
 done:
-  GST_DEBUG ("ret=%d result %" G_GINT64_FORMAT, res, *dest_val);
+
+  GST_DEBUG ("ret=%d result %" G_GINT64_FORMAT, res, res ? *dest_val : -1);
 
   return res;
 }