diff options
Diffstat (limited to 'apps/wps.c')
-rw-r--r-- | apps/wps.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/wps.c b/apps/wps.c index 3934f2483f..d6b068cd58 100644 --- a/apps/wps.c +++ b/apps/wps.c | |||
@@ -50,6 +50,7 @@ | |||
50 | #include "bookmark.h" | 50 | #include "bookmark.h" |
51 | #include "misc.h" | 51 | #include "misc.h" |
52 | #include "sound.h" | 52 | #include "sound.h" |
53 | #include "onplay.h" | ||
53 | 54 | ||
54 | #define FF_REWIND_MAX_PERCENT 3 /* cap ff/rewind step size at max % of file */ | 55 | #define FF_REWIND_MAX_PERCENT 3 /* cap ff/rewind step size at max % of file */ |
55 | /* 3% of 30min file == 54s step size */ | 56 | /* 3% of 30min file == 54s step size */ |
@@ -472,6 +473,12 @@ long wps_show(void) | |||
472 | 473 | ||
473 | switch(button) | 474 | switch(button) |
474 | { | 475 | { |
476 | #ifdef WPS_CONTEXT | ||
477 | case WPS_CONTEXT: | ||
478 | onplay(id3->path, TREE_ATTR_MPA, CONTEXT_WPS); | ||
479 | restore = true; | ||
480 | break; | ||
481 | #endif | ||
475 | #ifdef WPS_RC_BROWSE | 482 | #ifdef WPS_RC_BROWSE |
476 | case WPS_RC_BROWSE: | 483 | case WPS_RC_BROWSE: |
477 | #endif | 484 | #endif |
@@ -503,6 +510,14 @@ long wps_show(void) | |||
503 | #ifdef WPS_RC_PAUSE | 510 | #ifdef WPS_RC_PAUSE |
504 | case WPS_RC_PAUSE: | 511 | case WPS_RC_PAUSE: |
505 | #endif | 512 | #endif |
513 | #ifdef WPS_PAUSE_PRE | ||
514 | if ((lastbutton != WPS_PAUSE_PRE) | ||
515 | #ifdef WPS_RC_PAUSE_PRE | ||
516 | && (lastbutton != WPS_RC_PAUSE_PRE) | ||
517 | #endif | ||
518 | ) | ||
519 | break; | ||
520 | #endif | ||
506 | if ( paused ) | 521 | if ( paused ) |
507 | { | 522 | { |
508 | paused = false; | 523 | paused = false; |