diff --git a/src/rtsp-session.c b/src/rtsp-session.c index a7cf3ee1f6..05ca1f3ede 100644 --- a/src/rtsp-session.c +++ b/src/rtsp-session.c @@ -164,6 +164,8 @@ gst_rtsp_session_get_stream (GstRTSPSessionMedia *media, guint idx) GstRTSPSessionStream *result; GList *walk; + result = NULL; + for (walk = media->streams; walk; walk = g_list_next (walk)) { result = (GstRTSPSessionStream *) walk->data;