From 86bf4cf15d18dc2ef7fd9e65e1e0d7f49d60480b Mon Sep 17 00:00:00 2001 From: michux Date: Mon, 3 Mar 2008 22:57:16 +0000 Subject: reformat plugin_mpd - use c style comments git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@862 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- plugin_mpd.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/plugin_mpd.c b/plugin_mpd.c index b4e4b12..e94af5e 100644 --- a/plugin_mpd.c +++ b/plugin_mpd.c @@ -85,7 +85,7 @@ TODO: /* struct timeval */ #include -//source: http://www.musicpd.org/libmpdclient.shtml +/* source: http://www.musicpd.org/libmpdclient.shtml */ #include "libmpdclient.h" #ifdef WITH_DMALLOC @@ -195,14 +195,15 @@ static int mpd_update() int timedelta = (now.tv_sec - timestamp.tv_sec) * 1000 + (now.tv_usec - timestamp.tv_usec) / 1000; if (timedelta < waittime) { - //debug("[MPD] waittime not reached...\n"); + /* debug("[MPD] waittime not reached...\n"); */ return 1; } - //check if configured + + /* check if configured */ if (configure_mpd() < 0) { return -1; } - //check if connected + /* check if connected */ if (conn == NULL || conn->error) { if (conn) { debug("[MPD] Error: [%s], try to reconnect to [%s]:[%i]\n", conn->errorStr, host, iport); @@ -236,19 +237,18 @@ static int mpd_update() mpd_sendCurrentSongCommand(conn); mpd_sendCommandListEnd(conn); -//stats stats = mpd_getStats(conn); if (stats == NULL) { error("[MPD] error mpd_getStats: %s", conn->errorStr); goto cleanup; } -//status + mpd_nextListOkCommand(conn); if ((status = mpd_getStatus(conn)) == NULL) { error("[MPD] error mpd_nextListOkCommand: %s", conn->errorStr); goto cleanup; } -//song + mpd_nextListOkCommand(conn); while ((entity = mpd_getNextInfoEntity(conn))) { mpd_Song *song = entity->info.song; @@ -578,7 +578,7 @@ int plugin_init_mpd(void) else debug("[MPD] error, NOT configured!"); - //when mpd dies, do NOT exit application, ignore it! + /* when mpd dies, do NOT exit application, ignore it! */ signal(SIGPIPE, SIG_IGN); gettimeofday(×tamp, NULL); -- cgit v1.2.3 AgeCommit message (Collapse)AuthorFilesLines 2024-02-07dtv-scan-tables: added channels for Lviv, UkraineHEADmasterKostyantyn Sushchyk1-0/+36 Add DVB-T2 channels for Lviv, Ukraine Link: https://lore.kernel.org/linux-media/CAKx9isKAtha1QAgKLrFbkyQwpvWipEzTCH33XVqw3rYxtM+wYg@mail.gmail.com Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> 2024-01-31isdb-t: Update Brazil channel listsMauro Carvalho Chehab1935-11312/+70605 Use the current lists from portalbsd.com. Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> 2024-01-30dvb-s: drop transponders that aren't there at Lyngsat anymoreMauro Carvalho Chehab50-20357/+0 Those transponders may have been renamed or decommissioned. So, drop them. Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> 2024-01-30dvb-s: update from today's Lyngsat reportMauro Carvalho Chehab196-15543/+15859 Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> 2024-01-30dtv-scan-tables: full uk transmitter updateSimon Liddicott81-500/+163 updates all transmitter files, removes discontinued muxes Link: https://lore.kernel.org/linux-media/20230216010528.5921-1-simon@liddicott.com Signed-off-by: Simon Liddicott <simon@liddicott.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> 2022-11-25dtv-scan-tables: hu-Digikabel changesHrotkó Gábor1-1/+26 Modifications by: https://digi.hu/tv/csatornalista FREQUENCY = 121000000 Link: https://lore.kernel.org/linux-media/8c632dad-d428-402e-a171-baf7234f2d85@gmail.com Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> 2022-04-30pt-All: fix modulationMauro Carvalho Chehab1-10/+10 Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> 2022-04-30pt-All: Update Portugal channelsMauro Carvalho Chehab1-34/+70 There were some changes at Portugal channel frequencies, mostly in 2020. Update the DVB-T channel list accordingly, in order to reflect the current list of emitters. Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> 2022-03-07Update Brazilian ISDB-T tablesMauro Carvalho Chehab549-2923/+13860 Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> 2022-03-07Update satellite channel lists from LyngsatMauro Carvalho Chehab54-1882/+2326 Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> 2021-12-14dtv-scan-tables: latest UK changesSimon Liddicott4-24/+24 only includes transmitters where there have been changes Link: https://lore.kernel.org/linux-media/20210128234622.75009-1-simon@liddicott.com Signed-off-by: Simon Liddicott <simon@liddicott.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 2021-04-30update Brazilian scan filesMauro Carvalho Chehab2476-12805/+69312 Data updated according with https://portalbsd.com.br/. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 2021-04-30Remove legacy entriesMauro Carvalho Chehab129-24898/+0 There are several entries that used to be at Lyngsat. Several of them were merged with other entries. On others, there's no TV signal anymore. So, drop them. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 2021-04-30Add new satellites from LyngsatMauro Carvalho Chehab75-21/+29721 Those are are new satellite descriptions that didn't use to exist on Lyngsat. Add them. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 2021-04-30Rename a few satellites with two names and update frequenciesMauro Carvalho Chehab2-283/+182 Those two satellites have two names. Use Just one of them. While here, update their frequencies from Lyngsat. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 2021-04-30Update frequencies from LyngsatMauro Carvalho Chehab188-12304/+12666 Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>