Bug#290608: Patch for this issue

Daniel Nilsson Daniel Nilsson <daniel@oden.homeip.net>, 290608@bugs.debian.org
Sun, 15 May 2005 16:21:15 -0400


tags 290608 patch

I noticed this problem as well and reported it here:

http://bugzilla.gnome.org/show_bug.cgi?id=304224

Noticed later that it was worked around by RH:

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=134643

The RH workaround is simple, it disabled support for .wav files
completely. This should be OK since I have been advised that support
for this will go away on Nautilus 2.10 anyway. I built a .deb with the
following patch applied and now I can at least browse to a directory
using the audio view that contains a .wav file without a crash which I
consider to be an improvement...

+++ nautilus-media-0.8.1/media-info/media-info-priv.c   2004-10-14 19:16:28.215821032 -0400
@@ -364,9 +364,6 @@
   else if ((strcmp (mime, "application/x-flac") == 0) ||
            (strcmp (mime, "audio/x-flac") == 0))
     desc = g_strdup_printf ("%s name=source ! flacdec name=decoder ! audio/x-raw-int ! fakesink name=sink", priv->source_name);
-  else if ((strcmp (mime, "audio/wav") == 0) ||
-           (strcmp (mime, "audio/x-wav") == 0))
-    desc = g_strdup_printf ("%s name=source ! wavparse name=decoder ! audio/x-raw-int ! fakesink name=sink", priv->source_name);
   else if (strcmp (mime, "audio/x-mod") == 0 ||
           strcmp (mime, "audio/x-s3m") == 0 ||
            strcmp (mime, "audio/x-xm") == 0 ||
--- nautilus-media-0.8.1/audio-view/audio-view.c~       2004-06-01 04:41:45.000000000 -0400
+++ nautilus-media-0.8.1/audio-view/audio-view.c        2004-10-14 19:30:48.980496512 -0400
@@ -223,7 +223,6 @@
             (strcmp (type, "audio/mpeg") != 0) &&
             (strcmp (type, "audio/x-mp3") != 0) &&
             (strcmp (type, "audio/mpeg") != 0) &&
-            (strcmp (type, "audio/x-wav") != 0) &&
            (strcmp (type, "audio/x-mod") != 0) &&
            (strcmp (type, "audio/x-s3m") != 0) &&
            (strcmp (type, "audio/x-xm") != 0) &&