pkgsrc/multimedia/xine-ui/patches/patch-ah
drochner ea9e7838d9 update to 0.99.6
changes: many bugfixes
2010-05-07 17:46:24 +00:00

43 lines
1.3 KiB
Text

$NetBSD: patch-ah,v 1.3 2010/05/07 17:46:25 drochner Exp $
--- src/xitk/main.c.orig 2010-03-11 09:33:24.000000000 +0000
+++ src/xitk/main.c
@@ -1425,7 +1425,9 @@ int main(int argc, char *argv[]) {
gGui->no_mouse = 0;
gGui->wid = 0;
gGui->nongui_error_msg = NULL;
+#if 0
gGui->stdout = stdout;
+#endif
window_attribute.x = window_attribute.y = -8192;
window_attribute.width = window_attribute.height = -1;
@@ -1912,6 +1914,7 @@ int main(int argc, char *argv[]) {
int guiout_fd, stdout_fd;
FILE *guiout_fp;
+#if 0
if((guiout_fd = dup(STDOUT_FILENO)) < 0)
fprintf(stderr, "cannot dup STDOUT_FILENO: %s.\n", strerror(errno));
else if((guiout_fp = fdopen(guiout_fd, "w")) == NULL)
@@ -1925,6 +1928,7 @@ int main(int argc, char *argv[]) {
setlinebuf(gGui->stdout);
close(stdout_fd); /* stdout_fd was intermediate, not needed any longer */
}
+#endif
}
#endif
@@ -2240,10 +2244,12 @@ int main(int argc, char *argv[]) {
pthread_mutex_destroy(&gGui->download_mutex);
pthread_mutex_destroy(&gGui->logo_mutex);
+#if 0
if(gGui->report != stdout)
fclose(gGui->report);
if(gGui->stdout != stdout)
fclose(gGui->stdout);
+#endif
free_command_line_args(&_argv, _argc);