diff options
author | 2009-07-08 18:43:31 +0200 | |
---|---|---|
committer | 2009-07-08 18:43:31 +0200 | |
commit | ce1ae490f2c6b2d967aa4b47c69846ed2365d9d9 (patch) | |
tree | c77ee7c7c556d7d890afac898e9902f653272207 /callbacks.c | |
parent | 1197343dd5a9ed3964cdb610a294ed18d541bb09 (diff) |
moved all playlist_current handling into playlist module
Diffstat (limited to 'callbacks.c')
-rw-r--r-- | callbacks.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/callbacks.c b/callbacks.c index 1d689564..eb99458c 100644 --- a/callbacks.c +++ b/callbacks.c @@ -43,11 +43,11 @@ on_playpos_value_changed (GtkRange *range, if (g_disable_seekbar_handler) { return; } - if (playlist_current && playlist_current->codec) { - if (playlist_current->codec->info.duration > 0) { + if (playlist_current.codec) { + if (playlist_current.codec->info.duration > 0) { int val = gtk_range_get_value (range); int upper = gtk_adjustment_get_upper (gtk_range_get_adjustment (range)); - float time = playlist_current->codec->info.duration / (float)upper * (float)val; + float time = playlist_current.codec->info.duration / (float)upper * (float)val; messagepump_push (M_SONGSEEK, 0, (int)time * 1000, 0); } } |