[0.11] gst-plugins-bad: flite: fix uninitialized return value

Vincent Penquerc'h vincent at kemper.freedesktop.org
Tue Jan 24 03:53:58 PST 2012


Module: gst-plugins-bad
Branch: 0.11
Commit: a6a94fec489e59ef5af311bb3a2867d760d0953b
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=a6a94fec489e59ef5af311bb3a2867d760d0953b

Author: Vincent Penquerc'h <vincent.penquerch at collabora.co.uk>
Date:   Tue Jan 24 11:53:26 2012 +0000

flite: fix uninitialized return value

---

 ext/flite/gstflitetestsrc.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/ext/flite/gstflitetestsrc.c b/ext/flite/gstflitetestsrc.c
index 1e3381c..33fd793 100644
--- a/ext/flite/gstflitetestsrc.c
+++ b/ext/flite/gstflitetestsrc.c
@@ -269,7 +269,6 @@ static gboolean
 gst_flite_test_src_set_caps (GstBaseSrc * basesrc, GstCaps * caps)
 {
   GstFliteTestSrc *src = GST_FLITE_TEST_SRC (basesrc);
-  gboolean ret;
 
   gst_audio_info_init (&src->info);
   if (!gst_audio_info_from_caps (&src->info, caps)) {
@@ -277,7 +276,7 @@ gst_flite_test_src_set_caps (GstBaseSrc * basesrc, GstCaps * caps)
     return FALSE;
   }
 
-  return ret;
+  return TRUE;
 }
 
 #if 0



More information about the gstreamer-commits mailing list