From 0c2e9f21e31422942001bf603f3d340b5a648136 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Wed, 21 Aug 2002 17:38:56 +0000 Subject: Stays in pause mode after seek git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1896 a1c6a512-1295-4272-9138-f99709370657 --- apps/wps.c | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'apps/wps.c') diff --git a/apps/wps.c b/apps/wps.c index c14cbb4488..8667ad9969 100644 --- a/apps/wps.c +++ b/apps/wps.c @@ -597,7 +597,8 @@ int wps_show(void) { if ( mpeg_is_playing() && id3 && id3->length ) { - mpeg_pause(); + if (!paused) + mpeg_pause(); #ifdef HAVE_PLAYER_KEYPAD lcd_stop_scroll(); #endif @@ -629,7 +630,8 @@ int wps_show(void) { if ( mpeg_is_playing() && id3 && id3->length ) { - mpeg_pause(); + if (!paused) + mpeg_pause(); #ifdef HAVE_PLAYER_KEYPAD lcd_stop_scroll(); #endif @@ -664,8 +666,12 @@ int wps_show(void) mpeg_ff_rewind(ff_rewind_count); ff_rewind_count = 0; ff_rewind = false; - mpeg_resume(); - status_set_playmode(STATUS_PLAY); + if (paused) + status_set_playmode(STATUS_PAUSE); + else { + mpeg_resume(); + status_set_playmode(STATUS_PLAY); + } #ifdef HAVE_LCD_CHARCELLS draw_screen(id3); #endif @@ -710,8 +716,12 @@ int wps_show(void) mpeg_ff_rewind(ff_rewind_count); ff_rewind_count = 0; ff_rewind = false; - mpeg_resume(); - status_set_playmode(STATUS_PLAY); + if (paused) + status_set_playmode(STATUS_PAUSE); + else { + mpeg_resume(); + status_set_playmode(STATUS_PLAY); + } #ifdef HAVE_LCD_CHARCELLS draw_screen(id3); #endif -- cgit v1.2.3