summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index 4ea9c2283c..9e292deb7a 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -2638,7 +2638,9 @@ if (stream->type==STREAMTYPE_DVDNAV && dvd_nav_still)
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 ) {