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?



At Samstag, 27. September 2003 00:24 Sascha Volkenandt wrote:
> I derived a player class that does nothing more than call
> DeviceStillPicture once during activation ( Activate(true) ). That works
> fine. Now, the class derived from cControl returns osEnd in
> ProcessKey(...) in case the Player has been detached ( Activate(false) ),
> or in case the Button was "back". 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. I can then force
> that by switching the channel (using Channel+), but why doesn't it work
> here like it does in other players?

I've solved it now by simply deleting the player object with the "return 
osEnd"... That's what other players do too, but I've just looked into the 
destructors there, and the delete call was placed somewhere else...

So, just ignore my first mail :)

Greetings,
Sascha


-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index