mirror of https://github.com/mpv-player/mpv
10l, fix misplaced check in r29613, for loop detection we must compare
current file name against full name to be added, not current file name against new base path. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29637 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
76cb85c056
commit
9600686eb5
|
@ -3243,11 +3243,11 @@ if (mpctx->demuxer && mpctx->demuxer->type==DEMUXER_TYPE_PLAYLIST)
|
|||
{
|
||||
strncpy(temp, filename, strlen(filename)-strlen(mp_basename(filename)));
|
||||
temp[strlen(filename)-strlen(mp_basename(filename))]='\0';
|
||||
strcat(temp, playlist_entry);
|
||||
if (!strcmp(temp, filename)) {
|
||||
free(temp);
|
||||
continue;
|
||||
}
|
||||
strcat(temp, playlist_entry);
|
||||
play_tree_add_file(entry,temp);
|
||||
mp_msg(MSGT_CPLAYER,MSGL_V,"Resolving reference to %s.\n",temp);
|
||||
free(temp);
|
||||
|
|
Loading…
Reference in New Issue