aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-02-19 14:51:43 +0100
committerdec05eba <dec05eba@protonmail.com>2023-02-19 14:51:43 +0100
commit62a189716189f9ee6bdb78b0378d713627030894 (patch)
tree46d777618f33c5cadfdd4e8a100472679f4a3aa0 /src
parentad5d5a3afd84a5ad2c3240a8e4396ebf07fcb009 (diff)
Allow streaming if more than 1 audio track if merge audio tracks is enabled
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
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;