# HG changeset patch # User uau # Date 1150316428 0 # Node ID 4d87a5c4611cd4302f807efb8f8bd75bacffa5aa # Parent c528c6c518f15f683464d8688eaa7ade772566f8 When playing an audio only file use audio time instead of video time to set EDL mark. Fixes a NULL pointer dereference. Problem noticed by Robert Henney, robh A rut org. diff -r c528c6c518f1 -r 4d87a5c4611c mplayer.c --- a/mplayer.c Wed Jun 14 19:48:54 2006 +0000 +++ b/mplayer.c Wed Jun 14 20:20:28 2006 +0000 @@ -4232,7 +4232,8 @@ } break; case MP_CMD_EDL_MARK: if( edl_fd ) { - float v = sh_video->pts; + float v = sh_video ? sh_video->pts : + playing_audio_pts(sh_audio, d_audio, audio_out); fprintf( edl_fd, "%f %f %d\n", v-2, v, 0 ); } break;