From 5e32c2282866939808e111228da42de47f9407c2 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 23 Oct 2008 12:14:55 +0200 Subject: [PATCH] Initialize variable to avoid compiler warning. --- src/rtsp-session.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rtsp-session.c b/src/rtsp-session.c index 7893632c42..a7cf3ee1f6 100644 --- a/src/rtsp-session.c +++ b/src/rtsp-session.c @@ -110,6 +110,8 @@ gst_rtsp_session_get_media (GstRTSPSession *sess, GstRTSPMedia *media) GstRTSPSessionMedia *result; GList *walk; + result = NULL; + for (walk = sess->medias; walk; walk = g_list_next (walk)) { result = (GstRTSPSessionMedia *) walk->data;