summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKees Cook <kees@debian.org>2019-03-10 21:32:47 +0100
committerKees Cook <kees@debian.org>2019-03-10 21:32:47 +0100
commitf20badba5a18b2d51ec80f0d5ed22ea5012b3ca0 (patch)
tree8fdb6b814c730b7f14814af188a17a36f3d71acf
parentb7d8689e410105f0227b7ed04005baa990f1ffb5 (diff)
handle multiple versions of gstreamer when using gst-launch.
Gbp-Pq: Name gstreamer.patch
-rwxr-xr-xscripts/mp3cd6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/mp3cd b/scripts/mp3cd
index 89b328d..d7ec6ca 100755
--- a/scripts/mp3cd
+++ b/scripts/mp3cd
@@ -496,7 +496,7 @@ sub Backtick
my %PREREQS = (
'sox' => 'sox',
'cdrdao' => 'cdrdao',
- 'gst-launch' => 'gst-launch',
+ 'gst-launch' => 'gst-launch,gst-launch-0.10,gst-launch-1.0',
);
$PREREQS{'normalize'} = 'normalize,normalize-audio'
if (!defined($skip_stage{'norm'}));
@@ -633,10 +633,10 @@ sub append_tag_info($$$)
{
my ($media, $title, $path) = @_;
my $artist = "";
- my ($rc, $output) = Backtick("gst-launch -t filesrc location=$media ! decodebin");
+ my ($rc, $output) = Backtick("$found{'gst-launch'} -t filesrc location=$media ! decodebin");
die "Could not extract tags: $!\n" if ($rc != 0);
my $tags = 0;
- # Parse gst-launch -t output
+ # Parse gst-launch-1.0 -t output
# FOUND TAG : found by element "qtdemux0".
# title: Just Dance
# artist: Lady GaGa & Colby O'Donis