mirror of
https://github.com/morgan9e/UxPlay
synced 2026-04-14 00:04:13 +09:00
fix ZOOMFIX (broken by Nov 11 2021 commit 161d14511a )
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user