Ticket #1764: PATCH.backwards

File PATCH.backwards, 1.2 KB (added by o.flebbe@…, 15 years ago)

Approxmative Patch

Line 
1Index: input/input.c
2===================================================================
3--- input/input.c (Revision 34103)
4+++ input/input.c (Arbeitskopie)
5@@ -411,6 +411,7 @@
6 { { 'p', 0 }, "pause" },
7 { { ' ', 0 }, "pause" },
8 { { '.', 0 }, "frame_step" },
9+ { { ',', 0 }, "pausing seek -1 3"},
10 { { KEY_HOME, 0 }, "pt_up_step 1" },
11 { { KEY_END, 0 }, "pt_up_step -1" },
12 { { '>', 0 }, "pt_step 1" },
13Index: command.c
14===================================================================
15--- command.c (Revision 34103)
16+++ command.c (Arbeitskopie)
17@@ -2628,7 +2628,11 @@
18 mpctx->osd_show_percentage = sh_video->fps;
19 v = cmd->args[0].v.f;
20 abs = (cmd->nargs > 1) ? cmd->args[1].v.i : 0;
21- if (abs == 2) { /* Absolute seek to a specific timestamp in seconds */
22+ if (abs == 3) {
23+ /* Relative Seek in FPS */
24+ rel_seek_secs += v/ sh_video->fps;
25+ mpctx->osd_function = (v > 0) ? OSD_FFW : OSD_REW;
26+ } else if (abs == 2) { /* Absolute seek to a specific timestamp in seconds */
27 abs_seek_pos = SEEK_ABSOLUTE;
28 if (sh_video)
29 mpctx->osd_function =
30