summaryrefslogtreecommitdiff
path: root/multimedia/handbrake/patches/patch-aj
blob: 2f4374347575c142aaa3f2cb9a2674670af69b31 (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
$NetBSD: patch-aj,v 1.1.1.1 2009/01/21 14:15:15 jmcneill Exp $

--- gtk/src/ghb-dvd.c.orig	2009-01-20 21:34:27.000000000 -0500
+++ gtk/src/ghb-dvd.c	2009-01-20 21:34:56.000000000 -0500
@@ -315,7 +315,6 @@ ghb_dvd_volname(const gchar *device)
 }
 #endif
 
-#if defined(__linux__)
 gchar*
 ghb_resolve_symlink(const gchar *name)
 {
@@ -359,12 +358,10 @@ ghb_resolve_symlink(const gchar *name)
 	g_object_unref(gfile);
 	return file;
 }
-#endif
 
 void
 ghb_dvd_set_current(const gchar *name, signal_user_data_t *ud)
 {
-#if defined(__linux__)
 	GFile *gfile;
 	GFileInfo *info;
 	gchar *resolved = ghb_resolve_symlink(name);
@@ -394,12 +391,4 @@ ghb_dvd_set_current(const gchar *name, s
 		g_free(resolved);
 	}
 	g_object_unref(gfile);
-#else
-	if (ud->current_dvd_device != NULL)
-	{
-		g_free(ud->current_dvd_device);
-		ud->current_dvd_device = NULL;
-	}
-	ud->current_dvd_device = g_strdup(name);;
-#endif
 }