diff options
author | Kees Cook <kees@debian.org> | 2019-03-10 21:32:47 +0100 |
---|---|---|
committer | Kees Cook <kees@debian.org> | 2019-03-10 21:32:47 +0100 |
commit | f20badba5a18b2d51ec80f0d5ed22ea5012b3ca0 (patch) | |
tree | 8fdb6b814c730b7f14814af188a17a36f3d71acf | |
parent | b7d8689e410105f0227b7ed04005baa990f1ffb5 (diff) |
handle multiple versions of gstreamer when using gst-launch.
Gbp-Pq: Name gstreamer.patch
-rwxr-xr-x | scripts/mp3cd | 6 |
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 |