[GEM-dev] just an other videoV4L bugfix
Georg Holzmann
grhPD at gmx.at
Thu Dec 15 09:47:48 CET 2005
Hallo again!
in constructor of videoV4l.cpp, m_continue_thread is not initialized,
and because the first device is started automatically, it will be
stopped (pthread_join) and it crashes if you use Gem together with PDP
... (doesn't crash if you only use GEM ...)
anyway, this fixes the problem:
(videoV4L.cpp, line 53)
--------8<------------8<-------------
videoV4L :: videoV4L(int format) : video(format){
#ifdef HAVE_VIDEO4LINUX
if (!m_width)m_width=64;
if (!m_height)m_height=64;
m_capturing=false;
m_channel=COMPOSITEIN;
m_norm=VIDEO_MODE_AUTO;
m_devicenum=DEVICENO;
m_continue_thread = false;
post("video4linux");
#endif /* HAVE_VIDEO4LINUX */
}
--------8<------------8<-------------
LG
Georg
More information about the GEM-dev
mailing list