summaryrefslogtreecommitdiff
path: root/packages/gpe-nmf
diff options
context:
space:
mode:
authorFlorian Boor <florian.boor@kernelconcepts.de>2006-01-24 16:34:41 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-01-24 16:34:41 +0000
commitd1778efb8d5e433c8a2d703845d29c56b73f16e8 (patch)
tree3d83253c47f00e868ca03b06c220c860fc30f9d3 /packages/gpe-nmf
parentfc1aee6b0d22286c48bb025c8d47faa8b93d96c6 (diff)
gpe-nmf: Add patch to fix segfault allpying the playlist.
Diffstat (limited to 'packages/gpe-nmf')
-rw-r--r--packages/gpe-nmf/gpe-nmf-0.22/.mtn2git_empty0
-rw-r--r--packages/gpe-nmf/gpe-nmf-0.22/playlist-segfault.patch27
-rw-r--r--packages/gpe-nmf/gpe-nmf_0.22.bb4
3 files changed, 30 insertions, 1 deletions
diff --git a/packages/gpe-nmf/gpe-nmf-0.22/.mtn2git_empty b/packages/gpe-nmf/gpe-nmf-0.22/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/gpe-nmf/gpe-nmf-0.22/.mtn2git_empty
diff --git a/packages/gpe-nmf/gpe-nmf-0.22/playlist-segfault.patch b/packages/gpe-nmf/gpe-nmf-0.22/playlist-segfault.patch
new file mode 100644
index 0000000000..01ceec10ea
--- /dev/null
+++ b/packages/gpe-nmf/gpe-nmf-0.22/playlist-segfault.patch
@@ -0,0 +1,27 @@
+Index: playlist_edit.c
+===================================================================
+RCS file: /cvs/gpe/base/gpe-nmf/playlist_edit.c,v
+retrieving revision 1.21
+retrieving revision 1.22
+diff -B -b -u -r1.21 -r1.22
+--- playlist_edit.c 8 Jul 2005 14:40:33 -0000 1.21
++++ playlist_edit.c 11 Jan 2006 23:23:32 -0000 1.22
+@@ -172,8 +172,16 @@
+
+ if (fe->current_path)
+ g_free(fe->current_path);
+- fe->current_path = isdir(s) ? g_strdup(s) : g_path_get_dirname (s);
+- strcat(fe->current_path,"/");
++ if (isdir (s))
++ {
++ fe->current_path = g_strdup_printf ("%s/", s);
++ }
++ else
++ {
++ gchar *dir = g_path_get_dirname (s);
++ fe->current_path = g_strdup_printf ("%s/", dir);
++ g_free (dir);
++ }
+
+ fe->fs_open = FALSE;
+
diff --git a/packages/gpe-nmf/gpe-nmf_0.22.bb b/packages/gpe-nmf/gpe-nmf_0.22.bb
index 06c115a7cf..d90c42435b 100644
--- a/packages/gpe-nmf/gpe-nmf_0.22.bb
+++ b/packages/gpe-nmf/gpe-nmf_0.22.bb
@@ -17,9 +17,11 @@ RRECOMMENDS = "gst-plugin-mad \
gst-plugin-ivorbis \
gst-plugin-tcp"
+SRC_URI += " file://playlist-segfault.patch;patch=1;pnum=0"
+
SECTION = "gpe"
PRIORITY = "optional"
-PR = "r0"
+PR = "r1"
PARALLEL_MAKE=""