[gstreamermm] Fix the taglist test to fix the distcheck.
- From: José Alburquerque <jaalburqu src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gstreamermm] Fix the taglist test to fix the distcheck.
- Date: Wed, 21 Oct 2009 05:55:09 +0000 (UTC)
commit 57bdf314d8907f6099c001b2592c3917d8e8feef
Author: José Alburquerque <jaalburqu svn gnome org>
Date: Wed Oct 21 01:51:29 2009 -0400
Fix the taglist test to fix the distcheck.
* tests/test-taglist.cc (main, taglist): Fix the boolean check of the
validity of the taglist variable after construction.
(main, rate): Initialize the rate variable to avoid warning.
ChangeLog | 8 ++++++++
tests/test-taglist.cc | 4 ++--
2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 3100115..ec15fed 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2009-10-21 José Alburquerque <jaalburqu svn gnome org>
+ Fix the taglist test to fix the distcheck.
+
+ * tests/test-taglist.cc (main, taglist): Fix the boolean check of the
+ validity of the taglist variable after construction.
+ (main, rate): Initialize the rate variable to avoid warning.
+
+2009-10-21 José Alburquerque <jaalburqu svn gnome org>
+
Enable fatal warnings mode.
* Makefile.am (DISTCHECK_CONFIGURE_FLAGS): enable fatal warnings
diff --git a/tests/test-taglist.cc b/tests/test-taglist.cc
index 1a2993e..22e6075 100644
--- a/tests/test-taglist.cc
+++ b/tests/test-taglist.cc
@@ -26,7 +26,7 @@ int main(int argc, char** argv)
Gst::TagList taglist;
- if(taglist)
+ if(!taglist)
{
std::cout << "TagList is invalid. Exiting." << std::endl;
exit(1);
@@ -49,7 +49,7 @@ int main(int argc, char** argv)
else
std::cout << "Could not get tag `" << Gst::TAG_ARTIST << "'." << std::endl;
- guint rate;
+ guint rate = 0;
if(taglist.get(Gst::TAG_BITRATE, 0, rate))
std::cout << "Tag bit-rate is " << rate << "." << std::endl;
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]