comparison src/audacious/output.c @ 2328:d88558b0de0a trunk

[svn] - Added script for migration to XDG basedir. - Fixed tons of warnings.
author js
date Sat, 13 Jan 2007 16:41:21 -0800
parents 3149d4b1a9a9
children ad1d7687814c
comparison
equal deleted inserted replaced
2327:921b2d8d9b2e 2328:d88558b0de0a
27 27
28 #include "output.h" 28 #include "output.h"
29 #include "iir.h" 29 #include "iir.h"
30 #include "main.h" 30 #include "main.h"
31 #include "input.h" 31 #include "input.h"
32 #include "playback.h"
32 33
33 #include "playlist.h" 34 #include "playlist.h"
34 #include "libaudacious/util.h" 35 #include "libaudacious/util.h"
35 36
36 OutputPluginData op_data = { 37 OutputPluginData op_data = {
74 } 75 }
75 76
76 void 77 void
77 set_current_output_plugin(gint i) 78 set_current_output_plugin(gint i)
78 { 79 {
79 gint time;
80 gint pos;
81 gboolean playing; 80 gboolean playing;
82 OutputPlugin *op = get_current_output_plugin(); 81 OutputPlugin *op = get_current_output_plugin();
83 82
84 GList *node = g_list_nth(op_data.output_list, i); 83 GList *node = g_list_nth(op_data.output_list, i);
85 if (!node) { 84 if (!node) {
91 90
92 playing = playback_get_playing(); 91 playing = playback_get_playing();
93 92
94 if (playing == TRUE) 93 if (playing == TRUE)
95 { 94 {
96 gint i = 99;
97 guint time, pos; 95 guint time, pos;
98 PlaylistEntry *entry; 96 PlaylistEntry *entry;
99 97
100 /* don't stop yet, get the seek time and playlist position first */ 98 /* don't stop yet, get the seek time and playlist position first */
101 pos = playlist_get_position(playlist_get_active()); 99 pos = playlist_get_position(playlist_get_active());
124 122
125 /* and signal a reseek */ 123 /* and signal a reseek */
126 if (playlist_get_current_length(playlist_get_active()) > -1 && 124 if (playlist_get_current_length(playlist_get_active()) > -1 &&
127 time <= (playlist_get_current_length(playlist_get_active()))) 125 time <= (playlist_get_current_length(playlist_get_active())))
128 { 126 {
129 gint i;
130
131 playback_seek(time / 1000); 127 playback_seek(time / 1000);
132 } 128 }
133 } 129 }
134 } 130 }
135 131