From 57418b2192f4eb4decab716d50e09232ba22f7f4 Mon Sep 17 00:00:00 2001 From: Antoine Cellerier Date: Sun, 14 Oct 2007 21:05:26 +0000 Subject: Use the CLOCK_RATE define instead of 44100. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15110 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/mpegplayer/mpegplayer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/plugins') diff --git a/apps/plugins/mpegplayer/mpegplayer.c b/apps/plugins/mpegplayer/mpegplayer.c index 2e39060214..ee0dfcf494 100644 --- a/apps/plugins/mpegplayer/mpegplayer.c +++ b/apps/plugins/mpegplayer/mpegplayer.c @@ -1119,7 +1119,7 @@ static int button_loop(void) rb->lcd_setfont(FONT_SYSFIXED); if (result) { - settings.resume_time = (int)(get_stream_time()/44100/ + settings.resume_time = (int)(get_stream_time()/CLOCK_RATE/ 30-start_pts_time); str_send_msg(&video_str, STREAM_QUIT, 0); audio_str.status = STREAM_STOPPED; @@ -1131,14 +1131,14 @@ static int button_loop(void) break; case MPEG_STOP: - settings.resume_time = (int)(get_stream_time()/44100/ + settings.resume_time = (int)(get_stream_time()/CLOCK_RATE/ 30-start_pts_time); str_send_msg(&video_str, STREAM_QUIT, 0); audio_str.status = STREAM_STOPPED; break; case MPEG_PAUSE: - settings.resume_time = (int)(get_stream_time()/44100/ + settings.resume_time = (int)(get_stream_time()/CLOCK_RATE/ 30-start_pts_time); save_settings(); str_send_msg(&video_str, STREAM_PAUSE, 0); -- cgit v1.2.3