#!/bin/bash # # test gstreamer plugins required for miraclecast # plugins=(udpsrc rtpjitterbuffer rtpmp2tdepay tsdemux h264parse avdec_h264 autovideosink) echo testing plugins required echo FAIL= for plugin in ${plugins[@]} do gst-inspect-1.0 $plugin &> /dev/null if [ $? != 0 ] then FAIL=1 echo -e \\tgst plugin \"$plugin\" not available fi done echo if [ -v FAIL ] then cat <