Commit 323f59ac authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Subtitles detection: decode before testing the files.

This calls decode_URI, as does the meta.c file. I hope this is correct, feel free to revert if not.
closes #3076
parent 5dabbfb6
......@@ -34,6 +34,7 @@
#include <vlc_common.h>
#include <vlc_input.h>
#include <vlc_charset.h>
#include <vlc_url.h>
#ifdef HAVE_DIRENT_H
# include <dirent.h>
......@@ -260,11 +261,11 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path,
vlc_subfn_t *result = NULL; /* unsorted results */
char **result2; /* sorted results */
const char *psz_fname = psz_name_org;
if( !psz_fname )
return NULL;
const char *psz_fname = decode_URI( psz_name_org );
if( !strncmp( psz_fname, "file://", 7 ) )
{
psz_fname += 7;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment