summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2011-08-05 12:12:33 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2011-08-05 12:12:33 +0100
commit1090f00ee2455e5664a9d2a15ae56f4de53cd45c (patch)
tree8ad49efd977a6b4fbc17417f94d35aa36e9cab23 /tools
parentcf6b41aa78143d715f0ec398640aa600a59ed42a (diff)
tools: make unversioned wrapper look for -0.10 tools only
Don't want (incompatible) 0.11 tools to be picked up by accident.
Diffstat (limited to 'tools')
-rw-r--r--tools/gst-run.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/gst-run.c b/tools/gst-run.c
index ea6103ca7..b199e6fe0 100644
--- a/tools/gst-run.c
+++ b/tools/gst-run.c
@@ -356,6 +356,11 @@ main (int argc, char **argv)
candidates = get_candidates (dir, base);
g_free (dir);
+ /* only look for 0.10, we don't want 0.11 tools to be picked up accidentally
+ * (and from 0.11 on the unversioned tools are discontinued anyway) */
+ if (_arg_mm == NULL)
+ _arg_mm = GST_MAJORMINOR;
+
if (_arg_mm) {
/* if a version was forced, look it up in the hash table */
dir = g_hash_table_lookup (candidates, _arg_mm);