mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-14 22:53:02 +01:00
Clear warnings from device listing fix
This commit is contained in:
parent
96162bf254
commit
b67792f9f2
@ -186,7 +186,7 @@ VideoDeviceError init_video_devices()
|
||||
|
||||
/* Query V4L for capture capabilities */
|
||||
if ( -1 != ioctl(fd, VIDIOC_QUERYCAP, &cap) ) {
|
||||
video_input_name = (char*)malloc(strlen(cap.card) + strlen(device_address) + 4);
|
||||
video_input_name = (char*)malloc(strlen((const char*)cap.card) + strlen(device_address) + 4);
|
||||
strcpy(video_input_name, (char*)cap.card);
|
||||
strcat(video_input_name, " (");
|
||||
strcat(video_input_name, (char*)device_address);
|
||||
@ -234,8 +234,7 @@ VideoDeviceError terminate_video_devices()
|
||||
|
||||
int i;
|
||||
for (i = 0; i < size[vdt_input]; ++i) {
|
||||
const char* video_input_name = video_devices_names[vdt_input][i];
|
||||
free(video_input_name);
|
||||
free((void*)video_devices_names[vdt_input][i]);
|
||||
}
|
||||
|
||||
if ( pthread_mutex_destroy(&video_mutex) != 0 )
|
||||
|
Loading…
Reference in New Issue
Block a user