Initialize variable to avoid compiler warning.
authorWim Taymans <wim@metal.(none)>
Thu, 23 Oct 2008 10:14:55 +0000 (12:14 +0200)
committerWim Taymans <wim@metal.(none)>
Thu, 23 Oct 2008 10:14:55 +0000 (12:14 +0200)
src/rtsp-session.c

index 7893632..a7cf3ee 100644 (file)
@@ -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;