Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: MP3 Plugin
Hi!
> > BTW: Do you have any idea, why Mplayer doesn't exit cleanly
> > after ending replay (in slave mode) via any of the "quit replay"
> > buttons or if the movie is over? I always have to manually kill
>
> No idea, but I'm not using mplayer regularly and have still pre8
> installed.
I had the same problem and I also have a fix. It consists of two parts:
1. The mplayer.sh script has to be changed. Just remove the "exec" in the
line
where mplayer is started. This may stop the non-slave mode to work, but
works
great in slave mode with patched mplayer plugin.
2. Use the following patch, to change the mplayer plugin. On Sunday I posted
a slightly
different version which does both, sending the quit command and kill the
process.
diff -Naur build-tree/PLUGINS/src/mp3-0.7.10.orig/player-mplayer.c
build-tree/PLUGINS/src/mp3-0.7.10/player-mplayer.c
--- build-tree/PLUGINS/src/mp3-0.7.10.orig/player-mplayer.c 2002-09-06
18:39:36.000000000 +0200
+++ build-tree/PLUGINS/src/mp3-0.7.10/player-mplayer.c 2003-03-01
21:20:18.000000000 +0100
@@ -102,6 +102,7 @@
cMPlayerPlayer::~cMPlayerPlayer()
{
+ Activate(false);
ClosePipe();
Detach();
free(filename);
@@ -124,8 +125,16 @@
}
else if(started) {
run=false;
- kill(pid,SIGTERM);
+ if(slave)
+ {
+ MPlayerControl("quit");
+ }
+ else
+ {
+ kill(pid,SIGTERM);
+ }
waitpid(pid,0,0); // get status otherwise the child stays as a zombie
forever
+ pid = -1;
started=slave=false;
ClosePipe();
Cancel(2);
Michael
--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index