diff options
Diffstat (limited to 'apps/plugins/mpegplayer/disk_buf.c')
| -rw-r--r-- | apps/plugins/mpegplayer/disk_buf.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugins/mpegplayer/disk_buf.c b/apps/plugins/mpegplayer/disk_buf.c index defd8ef..4328606 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) if (!stream_get_window(&sw)) { disk_buf.state = TSTATE_DATA; +#ifdef HAVE_DISK_STORAGE rb->storage_sleep(); +#endif break; } @@ -187,7 +189,9 @@ static inline void disk_buf_buffer(void) /* Free space is less than one page */ disk_buf.state = TSTATE_DATA; disk_buf.low_wm = DISK_BUF_LOW_WATERMARK; +#ifdef HAVE_DISK_STORAGE rb->storage_sleep(); +#endif break; } @@ -209,7 +213,9 @@ static inline void disk_buf_buffer(void) { /* Error or end of stream */ disk_buf.state = TSTATE_EOS; +#ifdef HAVE_DISK_STORAGE rb->storage_sleep(); +#endif break; } |