summaryrefslogtreecommitdiff
path: root/src/file-manager
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-07-06 21:57:13 +0200
committerraveit65 <[email protected]>2022-07-21 17:41:28 +0200
commitbfd2e4163358f4a844dead592e7083d314f72464 (patch)
treeb51958edfd3e683f332e1518bb159080c3ca252d /src/file-manager
parentc65448f2242548c4101df2811ca1309f2b8c7356 (diff)
downloadcaja-bfd2e4163358f4a844dead592e7083d314f72464.tar.bz2
caja-bfd2e4163358f4a844dead592e7083d314f72464.tar.xz
fm-icon-view: totem-audio-preview was removed in totem 2.25.90
Diffstat (limited to 'src/file-manager')
-rw-r--r--src/file-manager/caja-audio-mime-types.h3
-rw-r--r--src/file-manager/fm-icon-view.c16
2 files changed, 3 insertions, 16 deletions
diff --git a/src/file-manager/caja-audio-mime-types.h b/src/file-manager/caja-audio-mime-types.h
index 74194cc8..7b3d516c 100644
--- a/src/file-manager/caja-audio-mime-types.h
+++ b/src/file-manager/caja-audio-mime-types.h
@@ -1,5 +1,4 @@
-/* generated with mime-types-include.sh in the totem module, don't edit or
- commit in the caja module without filing a bug against totem */
+/* See https://gstreamer.freedesktop.org/documentation/plugin-development/advanced/media-types.html?gi-language=c#table-of-audio-types */
static const char* audio_mime_types[] =
{
"audio/3gpp",
diff --git a/src/file-manager/fm-icon-view.c b/src/file-manager/fm-icon-view.c
index 83084483..9d57853b 100644
--- a/src/file-manager/fm-icon-view.c
+++ b/src/file-manager/fm-icon-view.c
@@ -2154,19 +2154,6 @@ static char **
get_preview_argv (char *uri)
{
char *command;
- char **argv;
-
- command = g_find_program_in_path ("totem-audio-preview");
-
- if (command)
- {
- argv = g_new (char *, 3);
- argv[0] = command;
- argv[1] = g_strdup (uri);
- argv[2] = NULL;
-
- return argv;
- }
command = g_find_program_in_path ("gst-launch-1.0");
@@ -2177,9 +2164,10 @@ get_preview_argv (char *uri)
if (command)
{
+ char **argv;
int i;
- argv = g_new (char *, 10);
+ argv = g_new (char *, 5);
i = 0;
argv[i++] = command;
argv[i++] = g_strdup ("playbin");