comparison src/cue/cuesheet.c @ 2061:2f62797aba22

more work here
author William Pitcock <nenolod@atheme.org>
date Sun, 14 Oct 2007 03:17:29 -0500
parents fffa7e3d39e0
children c8ba6764985d
comparison
equal deleted inserted replaced
2060:0803fba87da8 2061:2f62797aba22
662 target_time = finetune_seek ? finetune_seek : cue_tracks[cur_cue_track].index; 662 target_time = finetune_seek ? finetune_seek : cue_tracks[cur_cue_track].index;
663 g_mutex_unlock(cue_target_time_mutex); 663 g_mutex_unlock(cue_target_time_mutex);
664 #ifdef DEBUG 664 #ifdef DEBUG
665 g_print("cue: next_track: target_time = %d\n", target_time); 665 g_print("cue: next_track: target_time = %d\n", target_time);
666 #endif 666 #endif
667 if(cfg.stopaftersong) { 667 if(aud_cfg->stopaftersong) {
668 g_idle_add_full(G_PRIORITY_HIGH, do_stop, (void *)real_ip, NULL); 668 g_idle_add_full(G_PRIORITY_HIGH, do_stop, (void *)real_ip, NULL);
669 continue; 669 continue;
670 } 670 }
671 else { 671 else {
672 g_idle_add_full(G_PRIORITY_HIGH , do_setpos, &incr, NULL); 672 g_idle_add_full(G_PRIORITY_HIGH , do_setpos, &incr, NULL);
682 gint pos = aud_playlist_get_position(playlist); 682 gint pos = aud_playlist_get_position(playlist);
683 if (pos + 1 == aud_playlist_get_length(playlist)) { 683 if (pos + 1 == aud_playlist_get_length(playlist)) {
684 #ifdef DEBUG 684 #ifdef DEBUG
685 g_print("i: watchdog eof reached\n\n"); 685 g_print("i: watchdog eof reached\n\n");
686 #endif 686 #endif
687 if(cfg.repeat) { 687 if(aud_cfg->repeat) {
688 static gint incr = 0; 688 static gint incr = 0;
689 incr = -pos; 689 incr = -pos;
690 g_idle_add_full(G_PRIORITY_HIGH , do_setpos, &incr, NULL); 690 g_idle_add_full(G_PRIORITY_HIGH , do_setpos, &incr, NULL);
691 continue; 691 continue;
692 } 692 }
694 g_idle_add_full(G_PRIORITY_HIGH, do_stop, (void *)real_ip, NULL); 694 g_idle_add_full(G_PRIORITY_HIGH, do_stop, (void *)real_ip, NULL);
695 continue; 695 continue;
696 } 696 }
697 } 697 }
698 else { 698 else {
699 if(cfg.stopaftersong) { 699 if(aud_cfg->stopaftersong) {
700 g_idle_add_full(G_PRIORITY_HIGH, do_stop, (void *)real_ip, NULL); 700 g_idle_add_full(G_PRIORITY_HIGH, do_stop, (void *)real_ip, NULL);
701 continue; 701 continue;
702 } 702 }
703 #ifdef DEBUG 703 #ifdef DEBUG
704 g_print("i: watchdog end of cue, advance in playlist\n\n"); 704 g_print("i: watchdog end of cue, advance in playlist\n\n");