[0.11] gst-plugins-base: subitleoverlay: fix compiler warning

Tim Müller tpm at kemper.freedesktop.org
Thu Sep 29 14:59:19 PDT 2011


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

Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
Date:   Thu Sep 29 21:30:52 2011 +0100

subitleoverlay: fix compiler warning

gstsubtitleoverlay.c: In function 'gst_subtitle_overlay_video_sink_event':
gstsubtitleoverlay.c:1736:22: error: 'target' may be used uninitialized in this function

---

 gst/playback/gstsubtitleoverlay.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/gst/playback/gstsubtitleoverlay.c b/gst/playback/gstsubtitleoverlay.c
index 4d4573e..5744fc0 100644
--- a/gst/playback/gstsubtitleoverlay.c
+++ b/gst/playback/gstsubtitleoverlay.c
@@ -1731,9 +1731,11 @@ gst_subtitle_overlay_video_sink_setcaps (GstSubtitleOverlay * self,
   }
   GST_SUBTITLE_OVERLAY_UNLOCK (self);
 
-out:
   if (target)
     gst_object_unref (target);
+
+out:
+
   return ret;
 }
 



More information about the gstreamer-commits mailing list