Version 1.2.1
Fix client error on toggle recording. Fix extra newline in output when toggling recording from client.
This commit is contained in:
parent
5700e720af
commit
d4becec995
2 changed files with 5 additions and 5 deletions
|
@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.25)
|
||||||
|
|
||||||
set(obs_usc_VERSION_MAJOR 1)
|
set(obs_usc_VERSION_MAJOR 1)
|
||||||
set(obs_usc_VERSION_MINOR 2)
|
set(obs_usc_VERSION_MINOR 2)
|
||||||
set(obs_usc_VERSION_PATCH 0)
|
set(obs_usc_VERSION_PATCH 1)
|
||||||
set(obs_usc_VERSION_STR "${obs_usc_VERSION_MAJOR}.${obs_usc_VERSION_MINOR}.${obs_usc_VERSION_PATCH}")
|
set(obs_usc_VERSION_STR "${obs_usc_VERSION_MAJOR}.${obs_usc_VERSION_MINOR}.${obs_usc_VERSION_PATCH}")
|
||||||
|
|
||||||
project(obs-studio-plugin-unix-socket-control VERSION "${obs_usc_VERSION_STR}")
|
project(obs-studio-plugin-unix-socket-control VERSION "${obs_usc_VERSION_STR}")
|
||||||
|
|
|
@ -110,7 +110,7 @@ int main(int argc, char **argv) {
|
||||||
(buffer[1] & 1) != 0 ? "true" : "false",
|
(buffer[1] & 1) != 0 ? "true" : "false",
|
||||||
(buffer[1] & 2) != 0 ? "true" : "false",
|
(buffer[1] & 2) != 0 ? "true" : "false",
|
||||||
(buffer[1] & 4) != 0 ? "true" : "false");
|
(buffer[1] & 4) != 0 ? "true" : "false");
|
||||||
} else if (buffer[0] != UNIX_SOCKET_EVENT_NOP) {
|
} else if (buffer[0] != UNIX_SOCKET_EVENT_NOP && buffer[0] != UNIX_SOCKET_EVENT_TOGGLE_RECORDING) {
|
||||||
// Error. TODO handle this.
|
// Error. TODO handle this.
|
||||||
return 7;
|
return 7;
|
||||||
} else {
|
} else {
|
||||||
|
@ -124,13 +124,13 @@ int main(int argc, char **argv) {
|
||||||
case UNIX_SOCKET_EVENT_TOGGLE_RECORDING:
|
case UNIX_SOCKET_EVENT_TOGGLE_RECORDING:
|
||||||
switch(buffer[1]) {
|
switch(buffer[1]) {
|
||||||
case UNIX_SOCKET_EVENT_START_RECORDING:
|
case UNIX_SOCKET_EVENT_START_RECORDING:
|
||||||
puts("Sent event \"toggle recording\", stream STARTED!\n");
|
puts("Sent event \"toggle recording\", stream STARTED!");
|
||||||
break;
|
break;
|
||||||
case UNIX_SOCKET_EVENT_STOP_RECORDING:
|
case UNIX_SOCKET_EVENT_STOP_RECORDING:
|
||||||
puts("Sent event \"toggle recording\", stream STOPPED!\n");
|
puts("Sent event \"toggle recording\", stream STOPPED!");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
puts("Sent event \"toggle recording\", stream status UNKNOWN!\n");
|
puts("Sent event \"toggle recording\", stream status UNKNOWN!");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue