Commit c4afdf59 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

meta engine: add checks to verify that we indeed have the inputitem and it's dir when we use it.

parent 8005efa8
......@@ -73,9 +73,14 @@ static int FindMeta( vlc_object_t *p_this )
int i = 0;
struct stat a;
char psz_filename[MAX_PATH];
if( !p_item )
return VLC_EGENERIC;
char *psz_dir = input_item_GetURI( p_item );
char *psz_buf = strrchr( psz_dir, '/' );
if( !psz_dir )
return VLC_EGENERIC;
char *psz_buf = strrchr( psz_dir, '/' );
if( psz_buf )
{
psz_buf++;
......
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