mirror of
https://github.com/Tha14/toxic.git
synced 2025-09-16 07:26:53 +02:00
Per-call pending status and state handling
* Proper handling of incoming video calls. * Add command /vcall for initiating video calls * Add command /res command to set video resolution
This commit is contained in:
12
src/chat.c
12
src/chat.c
@@ -101,11 +101,18 @@ static const char *chat_cmd_list[] = {
|
||||
"/sdev",
|
||||
"/mute",
|
||||
"/sense",
|
||||
"/video",
|
||||
"/bitrate",
|
||||
|
||||
#endif /* AUDIO */
|
||||
|
||||
#ifdef VIDEO
|
||||
|
||||
"/res",
|
||||
"/vcall",
|
||||
"/video",
|
||||
|
||||
#endif /* VIDEO */
|
||||
|
||||
#ifdef PYTHON
|
||||
|
||||
"/run",
|
||||
@@ -131,9 +138,6 @@ void kill_chat_window(ToxWindow *self, Tox *m)
|
||||
StatusBar *statusbar = self->stb;
|
||||
|
||||
#ifdef AUDIO
|
||||
#ifdef VIDEO
|
||||
stop_video_stream(self);
|
||||
#endif /* VIDEO */
|
||||
stop_current_call(self);
|
||||
#endif /* AUDIO */
|
||||
|
||||
|
Reference in New Issue
Block a user