summaryrefslogtreecommitdiff
path: root/apps/plugins/mpegplayer/stream_mgr.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2008-01-27 21:45:15 +0000
committerMichael Sevakis <jethead71@rockbox.org>2008-01-27 21:45:15 +0000
commit3f4fd4d6a0d1bb6ce5e8e384e92f3a122e3f1ede (patch)
tree797d9ad3c61e21fd3c3105c9806cfc4eeedbd4b0 /apps/plugins/mpegplayer/stream_mgr.c
parent0efdd7a5f74c955d0eb604cd3fef9069be57bcbb (diff)
downloadrockbox-3f4fd4d6a0d1bb6ce5e8e384e92f3a122e3f1ede.tar.gz
rockbox-3f4fd4d6a0d1bb6ce5e8e384e92f3a122e3f1ede.zip
Now that headphone plug pause/resume should be better behaved, support it in mpegplayer too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16179 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mpegplayer/stream_mgr.c')
-rw-r--r--apps/plugins/mpegplayer/stream_mgr.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/plugins/mpegplayer/stream_mgr.c b/apps/plugins/mpegplayer/stream_mgr.c
index ad1df6f31a..e79c5fd595 100644
--- a/apps/plugins/mpegplayer/stream_mgr.c
+++ b/apps/plugins/mpegplayer/stream_mgr.c
@@ -809,6 +809,13 @@ uint32_t stream_get_seek_time(uint32_t *start)
809 return time; 809 return time;
810} 810}
811 811
812/* Wait for a state transistion to complete */
813void stream_wait_status(void)
814{
815 stream_mgr_lock();
816 stream_mgr_unlock();
817}
818
812/* Returns the smallest file window that includes all active streams' 819/* Returns the smallest file window that includes all active streams'
813 * windows */ 820 * windows */
814static bool stream_get_window_callback(struct list_item *item, 821static bool stream_get_window_callback(struct list_item *item,