1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-01-12 19:06:36 +00:00

XMMS2 fix and refactoring patch sf.net id #2579357 (thanks Tamim).

This commit is contained in:
Tamim Khan 2009-02-17 22:29:42 -07:00 committed by Brenden Matthews
parent cf77d3f1f9
commit d1180b4729
3 changed files with 7 additions and 12 deletions

View File

@ -19,6 +19,7 @@
is not full charged patch sf.net id #2556056 (thanks Martin)
* Extended support for local Maildir patch sf.net id #2561323 (thanks
Nicolas)
* XMMS2 fix and refactoring patch sf.net id #2579357 (thanks Tamim)
2009-02-15
* Added out_to_x

View File

@ -235,8 +235,6 @@ struct information {
#ifdef XMMS2
struct xmms2_s xmms2;
int xmms2_conn_state;
xmms_socket_t xmms2_fd;
fd_set xmms2_fdset;
xmmsc_connection_t *xmms2_conn;
#endif
#ifdef AUDACIOUS

View File

@ -315,8 +315,11 @@ void update_xmms2()
xmmsc_broadcast_playback_status, handle_playback_state_change,
current_info);
XMMS_CALLBACK_SET(current_info->xmms2_conn,
xmmsc_broadcast_playlist_loaded, handle_playlist_loaded,
current_info);
xmmsc_broadcast_playlist_loaded, handle_playlist_loaded,
current_info);
XMMS_CALLBACK_SET(current_info->xmms2_conn,
xmmsc_broadcast_medialib_entry_changed, handle_curent_id,
current_info);
/* get playback status, current id and active playlist */
XMMS_CALLBACK_SET(current_info->xmms2_conn,
@ -335,14 +338,7 @@ void update_xmms2()
/* handle callbacks */
if (current_info->xmms2_conn_state == CONN_OK) {
struct timeval tmout;
tmout.tv_sec = 0;
tmout.tv_usec = 100;
select(current_info->xmms2_fd + 1, &current_info->xmms2_fdset, NULL,
NULL, &tmout);
xmmsc_io_in_handle(current_info->xmms2_conn);
if (xmmsc_io_want_out(current_info->xmms2_conn)) {
xmmsc_io_out_handle(current_info->xmms2_conn);