From 00bbb1675d5607bf3eecbe2cc6a5afed6623028c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 19 May 2024 12:02:28 +0200 Subject: Fix youtube and twitch streaming (incorrect variable) --- src/main.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index fac3565..16b2a06 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1859,10 +1859,10 @@ static gboolean on_start_streaming_button_click(GtkButton *button, gpointer user const gchar *stream_service = gtk_combo_box_get_active_id(GTK_COMBO_BOX(stream_service_input_menu)); if(strcmp(stream_service, "twitch") == 0) { stream_url = "rtmp://live.twitch.tv/app/"; - stream_url += gtk_entry_get_text(youtube_stream_id_entry); + stream_url += gtk_entry_get_text(twitch_stream_id_entry); } else if(strcmp(stream_service, "youtube") == 0) { stream_url = "rtmp://a.rtmp.youtube.com/live2/"; - stream_url += gtk_entry_get_text(twitch_stream_id_entry); + stream_url += gtk_entry_get_text(youtube_stream_id_entry); } else if(strcmp(stream_service, "custom") == 0) { stream_url = gtk_entry_get_text(custom_stream_url_entry); container_str = gtk_combo_box_get_active_id(GTK_COMBO_BOX(custom_stream_container)); @@ -3396,8 +3396,6 @@ static const char* gpu_vendor_to_name(gpu_vendor vendor) { static void activate(GtkApplication *app, gpointer) { flatpak = is_inside_flatpak(); - Display *dpy = XOpenDisplay(NULL); - wayland = !dpy || is_xwayland(dpy); if(!wayland && !dpy) { GtkWidget *dialog = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, "Neither X11 nor Wayland is running."); -- cgit v1.2.3