From 740a9de08071d83a5f96f503ebc881f7f5f32952 Mon Sep 17 00:00:00 2001 From: albfan Date: Fri, 23 Jan 2015 01:28:15 +0100 Subject: [PATCH] fix view tester --- res/test_viewer.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/res/test_viewer.sh b/res/test_viewer.sh index b0ea5bc..ab1fa99 100755 --- a/res/test_viewer.sh +++ b/res/test_viewer.sh @@ -1,29 +1,32 @@ #!/bin/bash - # # test gstreamer plugins required for miraclecast # plugins=(udpsrc rtpjitterbuffer rtpmp2tdepay tsdemux h264parse avdec_h264 autovideosink) -echo testing plugins required +echo testing plugins required: echo FAIL= for plugin in ${plugins[@]} do + echo -n test $plugin... gst-inspect-1.0 $plugin &> /dev/null if [ $? != 0 ] then FAIL=1 + echo echo -e \\tgst plugin \"$plugin\" not available + else + echo -e " (passed)" fi done echo -if [ -v FAIL ] +if [ -n "$FAIL" ] then cat <