From 62a189716189f9ee6bdb78b0378d713627030894 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 19 Feb 2023 14:51:43 +0100 Subject: Allow streaming if more than 1 audio track if merge audio tracks is enabled --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index f4cbff4..b279449 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -872,9 +872,9 @@ static gboolean on_start_streaming_click(GtkButton *button, gpointer userdata) { ++num_audio_tracks; }); - if(num_audio_tracks > 1) { + if(num_audio_tracks > 1 && !gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(merge_audio_tracks_button))) { GtkWidget *dialog = gtk_message_dialog_new(GTK_WINDOW(window), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, - "Streaming doesn't work with more than 1 audio track. Please remove all audio tracks or only use 1 audio track"); + "Streaming doesn't work with more than 1 audio track. Please remove all audio tracks or only use 1 audio track or select to merge audio tracks"); gtk_dialog_run(GTK_DIALOG(dialog)); gtk_widget_destroy(dialog); return true; -- cgit v1.2.3