Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: mp3/mplayer and ash BUG or NOT BUG ???
Hi,
is there any progress with regard to the stopping problem? I've
installed MPlayer-0.90rc5 now, but the problem remains, so we have to
fix the MPlayer-plugin...
Matthias
Michael Dreher wrote:
[myself]:
> I tried to fix the stopping problem in slave mode by sending a "quit"
> command to mplayer when the plugin stops playback (see the
> attached patch).
Diff was stripped, I try it again with this mail.
> This works for the first time, but when I start the plugin for a second
> time, the keyboard input doesn't work, so that I have to kill mplayer.
I have to correct myself. After starting mplayer the second time, vdr
crashes,
but I didn't notice because it is automatically restarted by init.
Now I have a point to start, I'll try to debug the plugin.
Michael
-- Attached file included as plaintext by Listar --
-- File: mplayer_plugin_diff.txt
--- build-tree/PLUGINS/src/mp3-0.7.10/player-mplayer.c.orig 2003-02-22 13:05:07.000000000 +0100
+++ build-tree/PLUGINS/src/mp3-0.7.10/player-mplayer.c 2003-02-22 15:46:02.000000000 +0100
@@ -102,6 +102,7 @@
cMPlayerPlayer::~cMPlayerPlayer()
{
+ Activate(false);
ClosePipe();
Detach();
free(filename);
@@ -123,9 +124,11 @@
}
}
else if(started) {
run=false;
+ MPlayerControl("quit");
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);
--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index