diff --git a/ChangeLog b/ChangeLog index 29f16e554b..ef59ac7eb2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-05-24 Wim Taymans + + * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_parse_methods): + Init value to avoid infinte loops. + 2007-05-24 Wim Taymans Patch by: Peter Kjellerstedt diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 5b6a35ad99..078c8d8661 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -2906,7 +2906,7 @@ static gboolean gst_rtspsrc_parse_methods (GstRTSPSrc * src, RTSPMessage * response) { RTSPHeaderField field; - gchar *respoptions = NULL; + gchar *respoptions; gchar **options; gint indx = 0; gint i; @@ -2917,6 +2917,7 @@ gst_rtspsrc_parse_methods (GstRTSPSrc * src, RTSPMessage * response) /* try the Allow header first */ field = RTSP_HDR_ALLOW; while (TRUE) { + respoptions = NULL; rtsp_message_get_header (response, field, &respoptions, indx); if (indx == 0 && !respoptions) { /* if no Allow header was found then try the Public header... */