gst/rtsp/rtspextwms.c: Fix compile warning when debug is disabled as spotted bu Saur...
authorWim Taymans <wim.taymans@gmail.com>
Thu, 31 May 2007 15:57:07 +0000 (15:57 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Thu, 31 May 2007 15:57:07 +0000 (15:57 +0000)
Original commit message from CVS:
* gst/rtsp/rtspextwms.c: (rtsp_ext_wms_configure_stream):
Fix compile warning when debug is disabled as spotted bu Saur on IRC.

ChangeLog
gst/rtsp/rtspextwms.c

index 951b50c..6a6116e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-05-31  Wim Taymans  <wim@fluendo.com>
+
+       * gst/rtsp/rtspextwms.c: (rtsp_ext_wms_configure_stream):
+       Fix compile warning when debug is disabled as spotted bu Saur on IRC.
+
 2007-05-30  Andy Wingo  <wingo@pobox.com>
 
        * sys/v4l2/gstv4l2object.h: 
index e336176..c4ef468 100644 (file)
@@ -145,10 +145,12 @@ no_config:
 static gboolean
 rtsp_ext_wms_configure_stream (RTSPExtensionCtx * ctx, GstRTSPStream * stream)
 {
-  GstRTSPSrc *src = (GstRTSPSrc *) ctx->src;
+  GstRTSPSrc *src;
   GstStructure *s;
   const gchar *encoding;
 
+  src = (GstRTSPSrc *) ctx->src;
+
   s = gst_caps_get_structure (stream->caps, 0);
   encoding = gst_structure_get_string (s, "encoding-name");