AttachFilter need's a ref not an Object

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello
Today I tryed to play with vdr filters.
After reading the PLUGIN.html I found a Problem.

Example out of the Howto:
cMyFilter Filter;
cDevice::ActualDevice()->AttachFilter(Filter);

The Problem is that AttachFilter(...) needs a Ref not an Object.
So I made
cMyFilter Filter;
cDevice::ActualDevice()->AttachFilter(&Filter);

That is not very nice.

After a look at the VDR/pat.c I decide to use this piece of code:

  Filter = new cMyFilter();
  cDevice::ActualDevice()->AttachFilter(Filter);

Im not secure if I need to delete the Filter or if the cDevece handel it.

Maybe Klaus can fix this in the next howto.


Patrick


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux