Skip to content

Commit

Permalink
audtool: Accept a floating-point argument to seek functions. Closes: #95
Browse files Browse the repository at this point in the history
.
  • Loading branch information
jlindgren90 committed Oct 8, 2012
1 parent 5141c5f commit 91b773a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/audtool/handlers_playback.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ void playback_seek(gint argc, gchar **argv)
exit(1);
}

audacious_remote_jump_to_time(dbus_proxy, atoi(argv[1]) * 1000);
audacious_remote_jump_to_time(dbus_proxy, atof(argv[1]) * 1000);
}

void playback_seek_relative(gint argc, gchar **argv)
Expand All @@ -121,7 +121,7 @@ void playback_seek_relative(gint argc, gchar **argv)
}

oldtime = audacious_remote_get_output_time(dbus_proxy);
diff = atoi(argv[1]) * 1000;
diff = atof(argv[1]) * 1000;
newtime = oldtime + diff;

audacious_remote_jump_to_time(dbus_proxy, newtime);
Expand Down

0 comments on commit 91b773a

Please sign in to comment.