Fix launch so that it can play a list of files, now that EOS works enough. (It needs...
authorRichard Boulton <richard@tartarus.org>
Mon, 22 Jan 2001 23:39:23 +0000 (23:39 +0000)
committerRichard Boulton <richard@tartarus.org>
Mon, 22 Jan 2001 23:39:23 +0000 (23:39 +0000)
Original commit message from CVS:
Fix launch so that it can play a list of files, now that EOS works enough.
(It needs to not have to restart gstreamer each time, but good enough for
now ;-) )

examples/launch/mp3play
tests/old/examples/launch/mp3play

index 2faeffabda06cd9c922de7401317103cc08fd2a7..b5fd5ac1ada1e4513d7a518115adaf2455ef6b30 100755 (executable)
@@ -1,2 +1,4 @@
-#/usr/bin/sh
-gstreamer-launch disksrc "location=$1" ! mp3parse ! mpg123 ! audiosink
+#! /bin/sh
+for loc in "$@"; do
+gstreamer-launch disksrc "location=$loc" ! mp3parse ! mpg123 ! audiosink
+done
index 2faeffabda06cd9c922de7401317103cc08fd2a7..b5fd5ac1ada1e4513d7a518115adaf2455ef6b30 100755 (executable)
@@ -1,2 +1,4 @@
-#/usr/bin/sh
-gstreamer-launch disksrc "location=$1" ! mp3parse ! mpg123 ! audiosink
+#! /bin/sh
+for loc in "$@"; do
+gstreamer-launch disksrc "location=$loc" ! mp3parse ! mpg123 ! audiosink
+done