diff options
author | Wolfgang Rohdewald <wolfgang@rohdewald.de> | 2009-01-11 23:10:50 +0100 |
---|---|---|
committer | Wolfgang Rohdewald <wolfgang@rohdewald.de> | 2009-01-11 23:10:50 +0100 |
commit | cd92a3c2a990400c263cab0ecbc2f78c1b8f1723 (patch) | |
tree | a0f3014002954496204869510bd50979ccf52e94 | |
parent | a7d902f7f680ba5138d7a7867992bed901090ba2 (diff) | |
download | vdr-plugin-muggle-cd92a3c2a990400c263cab0ecbc2f78c1b8f1723.tar.gz vdr-plugin-muggle-cd92a3c2a990400c263cab0ecbc2f78c1b8f1723.tar.bz2 |
fix previous commit: mv must not run in background.
-rw-r--r-- | lyrics.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -63,7 +63,7 @@ mgLyrics::SaveExternal() { string tmp=item->getCachedFilename("lyrics.tmp"); PlayerControl()->CurrentItem()->resetHasLyricsFile(); char *cmd; - msprintf(&cmd, "mv -f \"%s\" \"%s\" >/dev/null 2>&1 & ", tmp.c_str(), local.c_str()); + msprintf(&cmd, "mv -f \"%s\" \"%s\" >/dev/null 2>&1", tmp.c_str(), local.c_str()); mgDebug(1,"muggle[%d]: lyrics: Executing %s\n",getpid(), cmd); if (!SystemExec(cmd)) { BlueAction=actLoadExternalLyrics; @@ -76,6 +76,7 @@ void mgLyrics::ThrowTmpAway(const mgItemGd& item) { char *cmd; msprintf(&cmd,"rm -f \"%s\"",item.getCachedFilename("lyrics.tmp").c_str()); + mgDebug(5,"muggle[%d]: lyrics: ThrowTmpAway: Executing %s\n",getpid(), cmd); SystemExec(cmd); free(cmd); state=lyricsSaved; @@ -114,6 +115,7 @@ mgLyrics::Process(eKeys key) { state=lyricsSaved; } } + key = kNone; } } else if (displayItem!=playItem) { if (normfound) { |