changeset 9124:ff773800b598

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 <FabianFranz@gmx.de>
author arpi
date Mon, 27 Jan 2003 22:27:54 +0000
parents 0f52526cb69a
children 61ec44e2f406
files mplayer.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Mon Jan 27 22:25:23 2003 +0000
+++ b/mplayer.c	Mon Jan 27 22:27:54 2003 +0000
@@ -1235,6 +1235,9 @@
     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