diff options
author | 2009-08-15 20:39:08 +0200 | |
---|---|---|
committer | 2009-08-15 20:39:08 +0200 | |
commit | 8a018c992918557d22b243ace4128255e1ad2566 (patch) | |
tree | f9ee79be64554b421f3c0b3d2440ea4d350a1477 | |
parent | 376d8d6c9e2f9f1f2956c0cec3d401e6c40b7e5b (diff) |
fixed bug when seeking to 0s in mp3 led to jump to next track
-rw-r--r-- | cmp3.c | 4 | ||||
-rw-r--r-- | main.c | 1 | ||||
-rw-r--r-- | streamer.c | 1 |
3 files changed, 6 insertions, 0 deletions
@@ -619,6 +619,10 @@ cmp3_seek (float time) { mad_synth_init(&synth); mad_timer_reset(&buffer.timer); + if (time == 0) { + return 0; + } + if (cmp3_scan_stream (&buffer, time) == -1) { return -1; } @@ -235,6 +235,7 @@ main (int argc, char *argv[]) { gtk_init (&argc, &argv); gtkpl_init (); + pl_load (defpl); mainwin = create_mainwin (); searchwin = create_searchwin (); @@ -55,6 +55,7 @@ streamer_set_nextsong (int song, int pstate) { void streamer_set_seek (float pos) { + printf ("seeking to %d\n", pos); seekpos = pos; } |