summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2013-03-24 18:50:40 -0700
committerDavid Schleef <ds@schleef.org>2013-03-24 18:50:40 -0700
commit685641f52fc306e63572809f835d9ae2feed13f2 (patch)
treef102f290daab65196c20bc6e8ea3015d5e5a71f1 /tools
parent49ced9e017b06ddd2af57565a797124bfc6b1da3 (diff)
vts-server: Fix for WebM on 1.0
Diffstat (limited to 'tools')
-rw-r--r--tools/vts-server.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/vts-server.c b/tools/vts-server.c
index 81cf3ed..12a88b1 100644
--- a/tools/vts-server.c
+++ b/tools/vts-server.c
@@ -406,9 +406,13 @@ gss_vts_start (GssProgram * program)
"vp8enc ! queue ! "
"webmmux streamable=true name=mux ! %s name=multifdsink "
"audiotestsrc is-live=true wave=ticks volume=0.2 ! "
- "audioconvert ! vorbisenc ! "
- "queue ! mux.audio_%%d ",
- vts->pattern, gss_server_get_multifdsink_string ());
+ "audioconvert ! vorbisenc ! " "queue ! "
+#if GST_CHECK_VERSION(1,0,0)
+ "mux.audio_%%u "
+#else
+ "mux.audio_%%d "
+#endif
+ , vts->pattern, gss_server_get_multifdsink_string ());
} else if (STREAM_TYPE == GSS_STREAM_TYPE_OGG_THEORA_VORBIS) {
s = g_strdup_printf ("videotestsrc is-live=true pattern=%d ! "
RAW_CAPS " ! "