add net io logger (only enabled if compiled STRICT_CHECKING and env var VEEJAY_LOG_NET_IO="on" )

fixed corrupted header in tag type network for unicast/mcast
fixed segfault on listing v4l2 devices when there is none
This commit is contained in:
niels
2011-08-03 19:49:22 +02:00
parent cf1c63e170
commit 8f43336b80
9 changed files with 230 additions and 105 deletions

View File

@@ -1777,8 +1777,8 @@ char **v4l2_get_device_list()
const char prefix[] = "/sys/class/video4linux/";
const char v4lprefix[] = "/dev/";
if( (dir = opendir( prefix )) == NULL ) {
veejay_msg(VEEJAY_MSG_WARNING,"Failed to open '%s':%d, %s", prefix, errno,strerror(errno));
return v4l2_dummy_list();
veejay_msg(VEEJAY_MSG_WARNING,"Failed to open '%s':%s", prefix, strerror(errno));
return NULL;
}
char *list[255];