summaryrefslogtreecommitdiff
path: root/multimedia/xine-ui/patches/patch-ah
blob: 146a4bddfc2dde7f3b612c962dee26f3afcba645 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
$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);