Index: DOCS/man/en/mplayer.1 =================================================================== --- DOCS/man/en/mplayer.1 (revision 31555) +++ DOCS/man/en/mplayer.1 (working copy) @@ -874,6 +874,18 @@ See http://www.mplayerhq.hu/\:DOCS/\:HTML/\:en/\:edl.html for details. . .TP +.B \-edl-backward-delay +When using EDL during playback and jumping backwards it is possible to +end up in the middle of an EDL record, in that case mplayer will jump out of +it in the same direction, to the start position of this EDL record. +Using this parameter you can set the number of seconds to add to +the backward seek so jumping out of the record will end up in a position a +little before the beginning of the scene and will give you some time to press +another button for going backward again or pausing. +Without this delay after the first jump out of an EDL scene, the playback would +enter the same EDL record again and immediately jump to the end. +Default is 2 seconds. +. +.TP .B \-enqueue (GUI only) Enqueue files given on the command line in the playlist instead of playing them immediately. Index: mplayer.c =================================================================== --- mplayer.c (revision 31555) +++ mplayer.c (working copy) @@ -363,7 +363,7 @@ // have some time after the seek to decide what to do next // (next seek, pause,...), otherwise after the seek it will // enter the same scene again and skip forward immediately -float edl_backward_extra_sec = 2; +float edl_backward_delay = 2; int use_filedir_conf; int use_filename_title; @@ -2587,7 +2587,7 @@ abs_seek_pos = 0; rel_seek_secs = -(mpctx->sh_video->pts - next_edl_record->start_sec + - edl_backward_extra_sec); + edl_backward_delay); mp_msg(MSGT_CPLAYER, MSGL_DBG4, "EDL_SKIP: pts [%f], " "offset [%f], start [%f], stop [%f], length [%f]\n", mpctx->sh_video->pts, rel_seek_secs, Index: cfg-mplayer.h =================================================================== --- cfg-mplayer.h (revision 31555) +++ cfg-mplayer.h (working copy) @@ -102,6 +102,7 @@ {"noalsa", "-noalsa has been removed. Remove it from your config file.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL}, {"edlout", &edl_output_filename, CONF_TYPE_STRING, 0, 0, 0, NULL}, + {"edl-backward-delay", &edl_backward_delay, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL}, #ifdef CONFIG_X11 {"display", &mDisplayName, CONF_TYPE_STRING, 0, 0, 0, NULL},