summaryrefslogtreecommitdiff
path: root/apps/plugins/mpegplayer
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/mpegplayer')
-rw-r--r--apps/plugins/mpegplayer/disk_buf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugins/mpegplayer/disk_buf.c b/apps/plugins/mpegplayer/disk_buf.c
index defd8ef81d..4328606a1e 100644
--- a/apps/plugins/mpegplayer/disk_buf.c
+++ b/apps/plugins/mpegplayer/disk_buf.c
@@ -172,7 +172,9 @@ static inline void disk_buf_buffer(void)
172 if (!stream_get_window(&sw)) 172 if (!stream_get_window(&sw))
173 { 173 {
174 disk_buf.state = TSTATE_DATA; 174 disk_buf.state = TSTATE_DATA;
175#ifdef HAVE_DISK_STORAGE
175 rb->storage_sleep(); 176 rb->storage_sleep();
177#endif
176 break; 178 break;
177 } 179 }
178 180
@@ -187,7 +189,9 @@ static inline void disk_buf_buffer(void)
187 /* Free space is less than one page */ 189 /* Free space is less than one page */
188 disk_buf.state = TSTATE_DATA; 190 disk_buf.state = TSTATE_DATA;
189 disk_buf.low_wm = DISK_BUF_LOW_WATERMARK; 191 disk_buf.low_wm = DISK_BUF_LOW_WATERMARK;
192#ifdef HAVE_DISK_STORAGE
190 rb->storage_sleep(); 193 rb->storage_sleep();
194#endif
191 break; 195 break;
192 } 196 }
193 197
@@ -209,7 +213,9 @@ static inline void disk_buf_buffer(void)
209 { 213 {
210 /* Error or end of stream */ 214 /* Error or end of stream */
211 disk_buf.state = TSTATE_EOS; 215 disk_buf.state = TSTATE_EOS;
216#ifdef HAVE_DISK_STORAGE
212 rb->storage_sleep(); 217 rb->storage_sleep();
218#endif
213 break; 219 break;
214 } 220 }
215 221