mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-26 14:03:27 +01:00
Refactored cmd_video function
This commit is contained in:
parent
b7e613de32
commit
619fdc1098
@ -260,7 +260,6 @@ void cmd_video(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[M
|
|||||||
goto on_error;
|
goto on_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( this_call->vin_idx == -1 ) {
|
|
||||||
if ( !self->stb->connection ) {
|
if ( !self->stb->connection ) {
|
||||||
error_str = "Friend is offline.";
|
error_str = "Friend is offline.";
|
||||||
goto on_error;
|
goto on_error;
|
||||||
@ -271,10 +270,10 @@ void cmd_video(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[M
|
|||||||
goto on_error;
|
goto on_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( this_call->vin_idx == -1 )
|
||||||
callback_video_starting(self->num);
|
callback_video_starting(self->num);
|
||||||
} else {
|
else
|
||||||
callback_video_end(self->num);
|
callback_video_end(self->num);
|
||||||
}
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
on_error:
|
on_error:
|
||||||
|
Loading…
Reference in New Issue
Block a user