mirror of
https://github.com/Tha14/toxic.git
synced 2025-07-03 06:16:45 +02:00
Fixed incorrect video device listing
This commit is contained in:
@ -81,8 +81,14 @@ ToxAV *init_video(ToxWindow *self, Tox *tox)
|
||||
void terminate_video()
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < MAX_CALLS; ++i)
|
||||
stop_video_transmission(&CallControl.calls[i], i);
|
||||
for (i = 0; i < MAX_CALLS; ++i) {
|
||||
Call* this_call = &CallControl.calls[i];
|
||||
|
||||
stop_video_transmission(this_call, i);
|
||||
|
||||
if( this_call->vout_idx != -1 )
|
||||
close_video_device(vdt_output, this_call->vout_idx);
|
||||
}
|
||||
|
||||
terminate_video_devices();
|
||||
}
|
||||
|
Reference in New Issue
Block a user