summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/file-manager/fm-icon-view.c10
1 files 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;
}