From 3f4fd4d6a0d1bb6ce5e8e384e92f3a122e3f1ede Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sun, 27 Jan 2008 21:45:15 +0000 Subject: 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 --- apps/plugins/mpegplayer/stream_mgr.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'apps/plugins/mpegplayer/stream_mgr.c') 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) 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, -- cgit v1.2.3