diff options
author | waker <wakeroid@gmail.com> | 2011-05-09 19:52:44 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-05-09 19:52:44 +0200 |
commit | ab3fd6e0232cc8cbcb5eb135f03fe96755d43587 (patch) | |
tree | add2c274fc609233754434340ec92572855e62d7 /plugins.c | |
parent | 90ae115344caffbf201340e7b5c20dc3bda80cd2 (diff) |
fixed seeking with global hotkeys crash when paused
Diffstat (limited to 'plugins.c')
-rw-r--r-- | plugins.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -400,7 +400,7 @@ plugin_t *plugins_tail; float plug_playback_get_pos (void) { playItem_t *trk = streamer_get_playing_track (); - float dur = pl_get_item_duration (trk); + float dur = trk ? pl_get_item_duration (trk) : -1; if (!trk || dur <= 0) { if (trk) { pl_item_unref (trk); @@ -416,7 +416,7 @@ plug_playback_get_pos (void) { void plug_playback_set_pos (float pos) { playItem_t *trk = streamer_get_playing_track (); - float dur = pl_get_item_duration (trk); + float dur = trk ? pl_get_item_duration (trk) : -1; if (!trk || dur <= 0) { if (trk) { pl_item_unref (trk); |