From 54404f04a0e85c08a11f1a7557d1e0bddb34e036 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= Date: Sat, 10 Jan 2015 17:16:32 +0100 Subject: audio-preview: Add support for GStreamer 1.0 --- src/file-manager/fm-icon-view.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/file-manager/fm-icon-view.c b/src/file-manager/fm-icon-view.c index 6ab19c4e..3d29bead 100644 --- a/src/file-manager/fm-icon-view.c +++ b/src/file-manager/fm-icon-view.c @@ -2146,7 +2146,13 @@ get_preview_argv (char *uri) return argv; } - command = g_find_program_in_path ("gst-launch-0.10"); + command = g_find_program_in_path ("gst-launch-1.0"); + + if (!command) + { + command = g_find_program_in_path ("gst-launch-0.10"); + } + if (command) { argv = g_new (char *, 10); @@ -2155,7 +2161,7 @@ get_preview_argv (char *uri) argv[i++] = g_strdup ("playbin"); argv[i++] = g_strconcat ("uri=", uri, NULL); /* do not display videos */ - argv[i++] = g_strdup ("current-video=-1"); + argv[i++] = g_strdup ("video-sink=fakesink"); argv[i++] = NULL; return argv; } -- cgit v1.2.1