diff options
author | waker <wakeroid@gmail.com> | 2011-05-09 22:16:31 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-05-09 22:16:31 +0200 |
commit | 5c3c6a9d675b0219c3f738deef9c4c2a2b9ecbe3 (patch) | |
tree | d93a4199abe2c65331603eacb21e9cfd6ec1971c /playlist.c | |
parent | 0cf55d888019ee2422ab0e8d7e01c2dd6a6331d3 (diff) |
lock playlist in pl_get_totaltime
Diffstat (limited to 'playlist.c')
-rw-r--r-- | playlist.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3337,7 +3337,9 @@ pl_reset_cursor (void) { float pl_get_totaltime (void) { - return playlist->totaltime; + LOCK; + float t = playlist->totaltime; + UNLOCK; } void |