summaryrefslogtreecommitdiff
path: root/multimedia/smpeg-xmms/files/patch-ab
blob: 169595771a5d78524ab36b2b1e12ca276fe96173 (plain) (blame)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
--- src/smpeg-xmms.c	2000/12/19 16:41:23	1.1
+++ src/smpeg-xmms.c	2000/12/19 16:48:55
@@ -269,6 +269,7 @@
 								smpeg_seek(MIN((gint)info.total_time,
 									       (gint)info.current_time + 5));
 							}
+#ifdef __linux
 							else
 							{
 								SDL_mutexP(vcd_mutex);
@@ -278,6 +279,7 @@
 									vcdpos = vcdpos_max;
 								SDL_mutexV(vcd_mutex);
 							}
+#endif
 							break;
 						case SDLK_LEFT:
 							if (!is_vcd)
@@ -287,6 +289,7 @@
 								SDL_mutexV(mpeg_mutex);
 								smpeg_seek(MAX(0, (gint)info.current_time - 5));
 							}
+#ifdef __linux
 							else
 							{
 								SDL_mutexP(vcd_mutex);
@@ -296,6 +299,7 @@
 									vcdpos = 0;
 								SDL_mutexV(vcd_mutex);
 							}
+#endif
 							break;
 						case SDLK_UP:
 							i = xmms_remote_get_main_volume(ctrlsocket_get_session_id());
@@ -748,9 +752,11 @@
 	}
 	if(is_vcd)
 	{
+#ifdef __linux
 	    set_track_number(CDROM_LEADOUT, &m, &s, &f);
 	    vcdpos_max = (((m * CD_SECS) + s) * CD_FRAMES) + f;
 	    smpeg_ip.set_info(name, (1000 * vcdpos_max) / CD_FRAMES, bitrate * 1000, srate, nch);
+#endif
 	}
 	else
 	{
@@ -869,12 +875,14 @@
 	  SMPEG_seek(mpeg, (gint) (((gdouble) time / info.total_time) *
 				   info.total_size));
 	}
+#ifdef __linux
 	else
 	{
 	  SDL_mutexP(vcd_mutex);
 	  vcdpos = msf_to_lba(0, (int) time, 0);
 	  SDL_mutexV(vcd_mutex);
 	}
+#endif
 	SDL_mutexV(mpeg_mutex);
 }
 
@@ -900,9 +908,14 @@
 
 	return (info.current_time * 1000);
     }
+#ifdef __linux
+    else
+    {
 	SDL_mutexV(mpeg_mutex);
         lba_to_msf(vcdpos, &m, &s, &f);
         return (1000 * ((m * CD_SECS) + s) + (f * 1000 / 75));
+    }
+#endif
 }
 
 static void smpeg_get_song_info(gchar * filename, gchar ** title, gint * length)