mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
mpegplayer: Adapt to new pause_rewind setting and apply it for all
kinds of pause, not just pause on headphone unplug. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29878 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4b5f68633f
commit
593d520a00
1 changed files with 9 additions and 9 deletions
|
@ -1723,6 +1723,15 @@ static int osd_pause(void)
|
||||||
osd_backlight_on_video_mode(false);
|
osd_backlight_on_video_mode(false);
|
||||||
/* Leave brightness alone and restore it when OSD is hidden */
|
/* Leave brightness alone and restore it when OSD is hidden */
|
||||||
|
|
||||||
|
if (stream_can_seek() && rb->global_settings->pause_rewind) {
|
||||||
|
stream_seek(-rb->global_settings->pause_rewind*TS_SECOND,
|
||||||
|
SEEK_CUR);
|
||||||
|
osd_schedule_refresh(OSD_REFRESH_VIDEO);
|
||||||
|
/* Update time display now */
|
||||||
|
osd_update_time();
|
||||||
|
osd_refresh(OSD_REFRESH_TIME);
|
||||||
|
}
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1922,15 +1931,6 @@ static void osd_handle_phone_plug(bool inserted)
|
||||||
osd_pause();
|
osd_pause();
|
||||||
|
|
||||||
osd_set_hp_pause_flag(true);
|
osd_set_hp_pause_flag(true);
|
||||||
|
|
||||||
if (stream_can_seek() && rb->global_settings->unplug_rw) {
|
|
||||||
stream_seek(-rb->global_settings->unplug_rw*TS_SECOND,
|
|
||||||
SEEK_CUR);
|
|
||||||
osd_schedule_refresh(OSD_REFRESH_VIDEO);
|
|
||||||
/* Update time display now */
|
|
||||||
osd_update_time();
|
|
||||||
osd_refresh(OSD_REFRESH_TIME);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue