But if to eliminate call "ioctl( m_videohandle, VIDIOCGWIN, &vid_win)" zmc will start and works normal. IMHO this part of a code is not meaningful also her possible to delete simply. Here a patch:
Code: Select all
--- zm_local_camera.cpp.orig 2004-04-19 20:02:17.000000000 +0400
+++ zm_local_camera.cpp 2004-05-25 22:52:47.000000000 +0400
@@ -71,15 +71,15 @@
struct video_window vid_win;
memset( &vid_win, 0, sizeof(vid_win) );
- if ( ioctl( m_videohandle, VIDIOCGWIN, &vid_win) < 0 )
- {
- Error(( "Failed to get window attributes: %s", strerror(errno) ));
- exit(-1);
- }
- Debug( 1, ( "Old X:%d", vid_win.x ));
- Debug( 1, ( "Old Y:%d", vid_win.y ));
- Debug( 1, ( "Old W:%d", vid_win.width ));
- Debug( 1, ( "Old H:%d", vid_win.height ));
+// if ( ioctl( m_videohandle, VIDIOCGWIN, &vid_win) < 0 )
+// {
+// Error(( "Failed to get window attributes: %s", strerror(errno) ));
+// exit(-1);
+// }
+// Debug( 1, ( "Old X:%d", vid_win.x ));
+// Debug( 1, ( "Old Y:%d", vid_win.y ));
+// Debug( 1, ( "Old W:%d", vid_win.width ));
+// Debug( 1, ( "Old H:%d", vid_win.height ));
vid_win.x = 0;
vid_win.y = 0;