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.zip
rockbox-3f4fd4d6a0d1bb6ce5e8e384e92f3a122e3f1ede.tar.gz
rockbox-3f4fd4d6a0d1bb6ce5e8e384e92f3a122e3f1ede.tar.bz2
rockbox-3f4fd4d6a0d1bb6ce5e8e384e92f3a122e3f1ede.tar.xz
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 ad1df6f..e79c5fd 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)
return time;
}
+/* Wait for a state transistion to complete */
+void stream_wait_status(void)
+{
+ stream_mgr_lock();
+ stream_mgr_unlock();
+}
+
/* Returns the smallest file window that includes all active streams'
* windows */
static bool stream_get_window_callback(struct list_item *item,