Added support for live stream by adding a check for encryption
Added support for live stream by adding a check for encryption

Signed-off-by: Sateesh Kavuri <sateesh.kavuri@gmail.com>

--- a/HLS-Stream-Creator.sh
+++ b/HLS-Stream-Creator.sh
@@ -411,7 +411,7 @@
   createStream "$PLAYLIST_NAME" "$OUT_NAME" "$BITRATE" "$INPUTFILE"
 
 
-  if [ "$ENCRYPT" == "1" ]
+  if [ "$ENCRYPT" == "1" ] && [ "$LIVE_STREAM" == "0" ]
   then
     encrypt
   fi