Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: "return osEnd" in Control doesn't stop Player?
Hi Sascha,
[Sascha Volkenandt]
> But when the button "Back" is pressed, only the cControl is
> destructed, the player continues to exist, and neither Activate(false)
nor the
> destructor are called.
You have to destroy the player by yourself. The MPlayerControl/Player has a
Stop()
method which kills the player when pressing kStop and also in the destructor
of the Control.
Here the relevant parts from menu-mplayer.c:
eOSState cMPlayerControl::ProcessKey(eKeys Key)
{
[...]
case kStop: Hide(); Stop(); return osEnd;
[...]
}
cMPlayerControl::~cMPlayerControl()
{
Stop();
cStatus::MsgReplaying(this, NULL);
}
void cMPlayerControl::Stop(void)
{
delete player; player=0;
}
void cMPlayerControl::Hide(void)
{
if(visible) {
Interface->Close();
needsFastResponse=visible=modeOnly=false;
}
}
Michael
--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index