1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-04 09:11:33 +02:00

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
This commit is contained in:
Jean-Baptiste Kempf 2009-10-17 23:48:45 +02:00
parent 5dabbfb6d4
commit 323f59ac8b

View File

@ -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;