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?
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.
could you help me trying to fix this problem?
thanks Cyrille
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
Le 04/04/2011 19:17, IOhannes zmölnig a écrit :
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...
yes, there is a bug somwhere, and i don't have a DC1394 camera with me to test...
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)
ok.
thanks Cyrille
fgamrsd IOhannes
GEM-dev mailing list GEM-dev@iem.at http://lists.puredata.info/listinfo/gem-dev