vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Tue Aug 21 16:59:42 2012 +0300| [cb9a583ca2434457162da922548371cd30be7675] | committer: Rémi Denis-Courmont
var_LocationParse(): accept semicolon as separator This is for backward compatibility with existing VLC playlists and VLC playlist generators. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cb9a583ca2434457162da922548371cd30be7675 --- src/misc/variables.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/misc/variables.c b/src/misc/variables.c index 011fb2d..1aec092 100644 --- a/src/misc/variables.c +++ b/src/misc/variables.c @@ -1083,8 +1083,10 @@ cleanup: #undef var_LocationParse /** - * Parses a set of colon-separated <variable name>=<value> pairs. Some access - * (or access_demux) plugins uses this scheme in media resource location. + * Parses a set of colon-separated or semicolon-separated + * <variable name>=<value> pairs. + * Some access (or access_demux) plugins uses this scheme + * in media resource location. * @note Only trusted/safe variables are allowed. This is intended. * * @warning Only use this for plugins implementing VLC-specific resource @@ -1104,9 +1106,9 @@ int var_LocationParse (vlc_object_t *obj, const char *mrl, const char *pref) assert(mrl != NULL); while (*mrl != '\0') { - mrl += strspn (mrl, ":"); /* skip leading colon(s) */ + mrl += strspn (mrl, ":;"); /* skip leading colon(s) */ - size_t len = strcspn (mrl, ":"); + size_t len = strcspn (mrl, ":;"); char *buf = malloc (preflen + len); if (likely(buf != NULL)) _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
