diff mplayer.c @ 13868:707a29256fd3

Fix broken seek while on edl and audio only, spoted by Oded Shimon
author reynaldo
date Wed, 03 Nov 2004 21:37:09 +0000
parents 4b9c901a6d23
children 8a928d5b42b8
line wrap: on
line diff
--- a/mplayer.c	Wed Nov 03 20:48:19 2004 +0000
+++ b/mplayer.c	Wed Nov 03 21:37:09 2004 +0000
@@ -2638,7 +2638,9 @@
  if( next_edl_record ) { // Are we (still?) doing EDL?
   if ( !sh_video ) {
     mp_msg( MSGT_CPLAYER, MSGL_ERR, MSGTR_EdlNOsh_video );
-    next_edl_record->next = NULL;
+    free(edl_records);
+    next_edl_record = NULL; 
+    edl_records = NULL;
   } else {
    if( sh_video->pts >= next_edl_record->start_sec ) {
      if( next_edl_record->action == EDL_SKIP ) {