summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBalló György <[email protected]>2015-01-10 17:16:32 +0100
committerinfirit <[email protected]>2015-01-10 18:03:50 +0100
commit54404f04a0e85c08a11f1a7557d1e0bddb34e036 (patch)
tree18af9a9511253ac04928126794b61e9f664ab462 /src
parent28ffdb0bdc33e1bc0ce20d4eef41907a03dc110c (diff)
downloadcaja-54404f04a0e85c08a11f1a7557d1e0bddb34e036.tar.bz2
caja-54404f04a0e85c08a11f1a7557d1e0bddb34e036.tar.xz
audio-preview: Add support for GStreamer 1.0
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;
}