gst/rtsp/gstrtspsrc.c: Init value to avoid infinte loops.
authorWim Taymans <wim.taymans@gmail.com>
Thu, 24 May 2007 08:14:00 +0000 (08:14 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Thu, 24 May 2007 08:14:00 +0000 (08:14 +0000)
Original commit message from CVS:
* gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_parse_methods):
Init value to avoid infinte loops.

ChangeLog
gst/rtsp/gstrtspsrc.c

index 29f16e5..ef59ac7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2007-05-24  Wim Taymans  <wim@fluendo.com>
 
+       * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_parse_methods):
+       Init value to avoid infinte loops.
+
+2007-05-24  Wim Taymans  <wim@fluendo.com>
+
        Patch by: Peter Kjellerstedt  <pkj at axis com>
 
        * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_setup_auth),
index 5b6a35a..078c8d8 100644 (file)
@@ -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... */