summaryrefslogtreecommitdiff
path: root/packages/mplayer/files/w100-mplayer.patch
blob: 8ce37d014c9bbac6be8492fd3f848c972b3feb5f (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
Index: MPlayer-1.0rc1/mplayer.c
===================================================================
--- MPlayer-1.0rc1.orig/mplayer.c
+++ MPlayer-1.0rc1/mplayer.c
@@ -807,6 +807,17 @@ static void exit_sighandler(int x){
   exit_player(NULL);
 }
 
+//w100 driver additions
+int g_sigcont = 0;
+
+static void misc_sighandler(int x){
+  switch(x){
+    case SIGCONT:
+      ++ g_sigcont;
+      break;
+  }
+}
+
 extern void mp_input_register_options(m_config_t* cfg);
 
 #include "mixer.h"
@@ -3216,6 +3227,9 @@ current_module = NULL;
 #endif
 #endif
 
+// w100 driver additions
+  signal(SIGCONT,misc_sighandler);
+    
 #ifdef HAVE_NEW_GUI
   if(use_gui){
        guiInit();