diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2007-05-24 08:14:00 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2007-05-24 08:14:00 +0000 |
commit | 587d209252089cb811b10358a5528bf3e607f445 (patch) | |
tree | 35e9e91ca90fc2d16f00aa1cea3fa6cd5101f812 /gst/rtsp | |
parent | 77cc870bbc6e7e8fe8a3563cd73899b06b8e3c29 (diff) |
gst/rtsp/gstrtspsrc.c: Init value to avoid infinte loops.
Original commit message from CVS:
* gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_parse_methods):
Init value to avoid infinte loops.
Diffstat (limited to 'gst/rtsp')
-rw-r--r-- | gst/rtsp/gstrtspsrc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 5b6a35ad..078c8d86 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... */ |