From 015cb47d1c944f90cb2760a8add344a27b943392 Mon Sep 17 00:00:00 2001 From: arpi Date: Mon, 27 Jan 2003 22:27:54 +0000 Subject: [PATCH] I also added that a self-reference is not endlessly played ... (Happened with Hole_Dollparts_MSTR.mov), which also gave the other problems ... Fabian Franz git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9125 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mplayer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mplayer.c b/mplayer.c index 912bf0e716..e737fa2095 100644 --- a/mplayer.c +++ b/mplayer.c @@ -1235,6 +1235,9 @@ if (demuxer && demuxer->type==DEMUXER_TYPE_PLAYLIST) if ((strlen(bname)>10) && !strncmp(bname,"qt",2) && !strncmp(bname+3,"gateQT",6)) continue; + if (!strncmp(bname,mp_basename(filename),strlen(bname))) // ignoring self-reference + continue; + entry = play_tree_new(); if (filename && !strcmp(mp_basename(playlist_entry),playlist_entry)) // add reference path of current file