diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2002-11-03 13:50:21 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2002-11-03 13:50:21 +0000 |
commit | cdbc5ea65ce29482bc76610d31419c352924fd16 (patch) | |
tree | 42217ce65bcc10efd925fc5f8f0882175e8a7b4d /tools/gst-launch-ext | |
parent | 42e05727a0ce99bfc13be91f2c7415e083db42ce (diff) |
updates
Original commit message from CVS:
updates
Diffstat (limited to 'tools/gst-launch-ext')
-rwxr-xr-x | tools/gst-launch-ext | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/gst-launch-ext b/tools/gst-launch-ext index 3515accb..aab72f87 100755 --- a/tools/gst-launch-ext +++ b/tools/gst-launch-ext @@ -51,6 +51,7 @@ sub read_config else { print "No configuration file $config_file found. You might want to create one.\n"; + print "This is not an error, just a friendly reminder... Check the man page.\n\n"; } if (!defined $cfg{AUDIOSINK}) { $cfg{AUDIOSINK} = "osssink"; } if (!defined $cfg{VIDEOSINK}) { $cfg{VIDEOSINK} = "colorspace ! xvideosink"; } @@ -60,9 +61,11 @@ sub read_config sub playfile($$) { my ($file, $ext) = @_; + my $command; + my $pipe; + $ext = lc $ext; - my $pipe; if ($cfg{VISUALIZER} && ($pipe = $pipes{"vis." . $ext})) { $command = "gst-launch filesrc location=\"$file\" ! $pipe"; @@ -123,7 +126,7 @@ while ($file = shift @ARGV) { my $ext = extension ($file); if (!$ext) { print "file $file doesn't have an extension !\n"; - return -1; + exit; } if ($ext eq 'm3u') { |