changeset 9090:d2abcf3b5a94

1000l
author arpi
date Sat, 25 Jan 2003 11:36:42 +0000
parents 483271b371ee
children 1360d475b075
files mplayer.c
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sat Jan 25 11:34:00 2003 +0000
+++ b/mplayer.c	Sat Jan 25 11:36:42 2003 +0000
@@ -1275,7 +1275,15 @@
   play_tree_t* entry;
   // Handle playlist
   current_module="handle_playlist";
-  if ( stream->type != STREAMTYPE_PLAYLIST ) goto goto_next_file;
+  switch(stream->type){
+  case STREAMTYPE_VCD:
+  case STREAMTYPE_DVD:
+  case STREAMTYPE_DVDNAV:
+  case STREAMTYPE_CDDA:
+  case STREAMTYPE_VCDBINCUE:
+    // don't try to parse raw media as playlist, it's unlikely
+    goto goto_next_file;
+  }
   mp_msg(MSGT_CPLAYER,MSGL_INFO,"Falling back on trying to parse playlist %s...\n",filename);
   stream_reset(stream);
   stream_seek(stream,stream->start_pos);