1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00

fix view tester

This commit is contained in:
albfan 2015-01-23 01:28:15 +01:00
parent 091080b3a7
commit 740a9de080

View file

@ -1,29 +1,32 @@
#!/bin/bash #!/bin/bash
# #
# test gstreamer plugins required for miraclecast # test gstreamer plugins required for miraclecast
# #
plugins=(udpsrc rtpjitterbuffer rtpmp2tdepay tsdemux h264parse avdec_h264 autovideosink) plugins=(udpsrc rtpjitterbuffer rtpmp2tdepay tsdemux h264parse avdec_h264 autovideosink)
echo testing plugins required echo testing plugins required:
echo echo
FAIL= FAIL=
for plugin in ${plugins[@]} for plugin in ${plugins[@]}
do do
echo -n test $plugin...
gst-inspect-1.0 $plugin &> /dev/null gst-inspect-1.0 $plugin &> /dev/null
if [ $? != 0 ] if [ $? != 0 ]
then then
FAIL=1 FAIL=1
echo
echo -e \\tgst plugin \"$plugin\" not available echo -e \\tgst plugin \"$plugin\" not available
else
echo -e " (passed)"
fi fi
done done
echo echo
if [ -v FAIL ] if [ -n "$FAIL" ]
then then
cat <<EOF cat <<EOF
Some plugins required for visualization are missed Some plugins required for visualization are missed
@ -35,7 +38,9 @@ If that fails too, try:
$ vlc rtp://@1991 $ vlc rtp://@1991
EOF EOF
else
echo everything installed
fi fi
echo