aboutsummaryrefslogtreecommitdiffstats
path: root/plugin_mpd.c
diff options
context:
space:
mode:
authormichux <michux@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2008-01-28 17:25:22 +0000
committermichux <michux@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2008-01-28 17:25:22 +0000
commit4b9b072415a7fc475674809218de0c1cb6e496d4 (patch)
treeb746b8da00717de2835e6f50720071d6d29ff85a /plugin_mpd.c
parent2e6a20b9a8a2bc2f3c2023d0cd750b6e198ba743 (diff)
downloadlcd4linux-4b9b072415a7fc475674809218de0c1cb6e496d4.tar.gz
minor updates
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@850 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'plugin_mpd.c')
-rw-r--r--plugin_mpd.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/plugin_mpd.c b/plugin_mpd.c
index 0daa1d1..5b5b053 100644
--- a/plugin_mpd.c
+++ b/plugin_mpd.c
@@ -67,7 +67,10 @@
TODO:
-what happens if the db is updating? int mpd_status_db_is_updating() 0/1
- -port configuration to lcd4linux.cfg (like mysql)
+
+BUGS:
+ -getMpdUptime() does not update its counter
+ -getMpdPlaytime() does not update its counter
*/
@@ -240,10 +243,13 @@ static int mpd_update()
l_mpdPlaylistLength = mpd_playlist_get_playlist_length(mi);
l_currentSongPos = mpd_player_get_current_song_pos(mi);
- /* dummy checks */
+ /* sanity checks */
if (l_volume < 0 || l_volume > 100)
l_volume = 0;
+ if (l_bitRate < 0)
+ l_bitRate = 0;
+
song = mpd_playlist_get_current_song(mi);
if (song) {