# HG changeset patch # User mstorsjo # Date 1269331163 0 # Node ID b17b16b532ca38313db44a7c93f46a8e3dce381a # Parent 754103ee76deb0528bba81d9b2130c0663136d75 Parse options in the RTSP URL only from the last question mark onwards This helps if the URL (erroneously?) contains question marks within the path. diff -r 754103ee76de -r b17b16b532ca rtsp.c --- a/rtsp.c Tue Mar 23 07:55:15 2010 +0000 +++ b/rtsp.c Tue Mar 23 07:59:23 2010 +0000 @@ -1449,7 +1449,7 @@ port = RTSP_DEFAULT_PORT; /* search for options */ - option_list = strchr(path, '?'); + option_list = strrchr(path, '?'); if (option_list) { /* Strip out the RTSP specific options, write out the rest of * the options back into the same string. */