Mercurial > audlegacy
comparison src/audacious/playlist.c @ 2460:5e8526a4f554 trunk
[svn] - added a new hook: playlist set info
author | giacomo |
---|---|
date | Thu, 01 Feb 2007 06:09:53 -0800 |
parents | 6cdccf094e51 |
children | bb2f191895ce |
comparison
equal
deleted
inserted
replaced
2459:67c7de5f6506 | 2460:5e8526a4f554 |
---|---|
979 PLAYLIST_UNLOCK(playlist->mutex); | 979 PLAYLIST_UNLOCK(playlist->mutex); |
980 | 980 |
981 playlist_recalc_total_time(playlist); | 981 playlist_recalc_total_time(playlist); |
982 | 982 |
983 mainwin_set_song_info(rate, freq, nch); | 983 mainwin_set_song_info(rate, freq, nch); |
984 | |
985 if ( playlist->position ) | |
986 hook_call( "playlist set info" , playlist->position ); | |
984 } | 987 } |
985 | 988 |
986 void | 989 void |
987 playlist_set_info(Playlist * playlist, const gchar * title, gint length, gint rate, | 990 playlist_set_info(Playlist * playlist, const gchar * title, gint length, gint rate, |
988 gint freq, gint nch) | 991 gint freq, gint nch) |
1000 PLAYLIST_UNLOCK(playlist->mutex); | 1003 PLAYLIST_UNLOCK(playlist->mutex); |
1001 | 1004 |
1002 playlist_recalc_total_time(playlist); | 1005 playlist_recalc_total_time(playlist); |
1003 | 1006 |
1004 mainwin_set_song_info(rate, freq, nch); | 1007 mainwin_set_song_info(rate, freq, nch); |
1008 | |
1009 if ( playlist->position ) | |
1010 hook_call( "playlist set info" , playlist->position ); | |
1005 } | 1011 } |
1006 | 1012 |
1007 void | 1013 void |
1008 playlist_check_pos_current(Playlist *playlist) | 1014 playlist_check_pos_current(Playlist *playlist) |
1009 { | 1015 { |