fix ZOOMFIX (broken by Nov 11 2021 commit 161d14511a )

This commit is contained in:
fduncanh
2021-11-26 11:41:43 -05:00
parent 24885ea41b
commit 1ceb6c9c4f
2 changed files with 6 additions and 4 deletions

View File

@@ -102,8 +102,10 @@ void video_renderer_init(const char *server_name, videoflip_t videoflip[2], con
/* this call to g_set_application_name makes server_name appear in the X11 display window title bar, */
/* (instead of the program name uxplay taken from (argv[0]). It is only set one time. */
if (!g_get_application_name()) g_set_application_name(server_name);
const gchar *appname = g_get_application_name();
if (!appname || strcmp(appname,server_name)) g_set_application_name(server_name);
appname = NULL;
renderer = calloc(1, sizeof(video_renderer_t));
assert(renderer);

View File

@@ -442,6 +442,8 @@ int main (int argc, char *argv[]) {
LOGI("video_disabled");
display[3] = 1; /* set fps to 1 frame per sec when no video will be shown */
}
append_hostname(server_name);
if (use_audio) {
audio_renderer_init(audiosink.c_str());
@@ -469,8 +471,6 @@ int main (int argc, char *argv[]) {
}
parse_hw_addr(mac_address, server_hw_addr);
mac_address.clear();
append_hostname(server_name);
relaunch:
compression_type = 0;