diff options
Diffstat (limited to 'apps/plugins/mpegplayer/mpegplayer.c')
-rw-r--r-- | apps/plugins/mpegplayer/mpegplayer.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) | |||
1119 | rb->lcd_setfont(FONT_SYSFIXED); | 1119 | rb->lcd_setfont(FONT_SYSFIXED); |
1120 | 1120 | ||
1121 | if (result) { | 1121 | if (result) { |
1122 | settings.resume_time = (int)(get_stream_time()/44100/ | 1122 | settings.resume_time = (int)(get_stream_time()/CLOCK_RATE/ |
1123 | 30-start_pts_time); | 1123 | 30-start_pts_time); |
1124 | str_send_msg(&video_str, STREAM_QUIT, 0); | 1124 | str_send_msg(&video_str, STREAM_QUIT, 0); |
1125 | audio_str.status = STREAM_STOPPED; | 1125 | audio_str.status = STREAM_STOPPED; |
@@ -1131,14 +1131,14 @@ static int button_loop(void) | |||
1131 | break; | 1131 | break; |
1132 | 1132 | ||
1133 | case MPEG_STOP: | 1133 | case MPEG_STOP: |
1134 | settings.resume_time = (int)(get_stream_time()/44100/ | 1134 | settings.resume_time = (int)(get_stream_time()/CLOCK_RATE/ |
1135 | 30-start_pts_time); | 1135 | 30-start_pts_time); |
1136 | str_send_msg(&video_str, STREAM_QUIT, 0); | 1136 | str_send_msg(&video_str, STREAM_QUIT, 0); |
1137 | audio_str.status = STREAM_STOPPED; | 1137 | audio_str.status = STREAM_STOPPED; |
1138 | break; | 1138 | break; |
1139 | 1139 | ||
1140 | case MPEG_PAUSE: | 1140 | case MPEG_PAUSE: |
1141 | settings.resume_time = (int)(get_stream_time()/44100/ | 1141 | settings.resume_time = (int)(get_stream_time()/CLOCK_RATE/ |
1142 | 30-start_pts_time); | 1142 | 30-start_pts_time); |
1143 | save_settings(); | 1143 | save_settings(); |
1144 | str_send_msg(&video_str, STREAM_PAUSE, 0); | 1144 | str_send_msg(&video_str, STREAM_PAUSE, 0); |