Skip to content

Commit

Permalink
Finally completed the configuration writer
Browse files Browse the repository at this point in the history
  • Loading branch information
wberube committed Aug 16, 2024
1 parent f2b97bc commit 5d46620
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ int save_app_config(void) {
fprintf(file, " width: %d\n", app_config.mp4_width);
fprintf(file, " height: %d\n", app_config.mp4_height);
fprintf(file, " fps: %d\n", app_config.mp4_fps);
fprintf(file, " profile: %s\n", app_config.mp4_profile);
fprintf(file, " profile: %d\n", app_config.mp4_profile);
fprintf(file, " bitrate: %d\n", app_config.mp4_bitrate);

fprintf(file, "osd:\n");
Expand Down
2 changes: 1 addition & 1 deletion src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ void *server_thread(void *vargp) {
continue;
}

if (app_config.audio_enable && equals(uri, "/api/cmd")) {
if (equals(uri, "/api/cmd")) {
if (equals(method, "GET")) {
int result = -1;
if (!empty(query)) {
Expand Down

0 comments on commit 5d46620

Please sign in to comment.