[GEM-dev] question regarding closing a DC1394 device

IOhannes zmölnig zmoelnig at iem.at
Mon Apr 4 19:17:42 CEST 2011


On 04/04/2011 06:56 PM, cyrille henry wrote:
> hello,
>
> after removing a pix_video object that is connected to a dc1394 device
> (or closing pd), the device is still sending information.
> (so you have to reboot it if you want to connect it again)
>
> i don't really understand the code of videoDC1394.cpp.
> line 59 : what is this close() function?

without looking at the code:
close() is the public (as used by pix_video) function (as defined in 
video.cpp), that in turn calls stopTransfer() (if needed) and 
closeDevice() (if needed)
at least, it _should_ do that.
if it does not, then there is a bug somewhere...

>
> i think closeDevice need to be add line 60. It help to stop transfer
> function when removing the object, but strangely it did not help when
> closing pd.
> So i did not really know if it's the way to go.

there is a bug in Pd that does not call the object's 
destructors/closefunctions when quitting Pd.
i once tried a fix but it was not accepted (i think thomas grill spotted 
some problems with my fix)

fgamrsd
IOhannes



More information about the GEM-dev mailing list