From 0b2e6f1c901d105c53141cd9973e3c206c8086ec Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 31 May 2007 15:57:07 +0000 Subject: gst/rtsp/rtspextwms.c: Fix compile warning when debug is disabled as spotted bu Saur on IRC. 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 | 5 +++++ gst/rtsp/rtspextwms.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 951b50c0..6a6116e2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-05-31 Wim Taymans + + * 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 * sys/v4l2/gstv4l2object.h: diff --git a/gst/rtsp/rtspextwms.c b/gst/rtsp/rtspextwms.c index e336176a..c4ef468e 100644 --- a/gst/rtsp/rtspextwms.c +++ b/gst/rtsp/rtspextwms.c @@ -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"); -- cgit