vdradmin-am (3.6.5-5) 07_fix-need-recoding-detection

Summary

 vdradmind.pl |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

    
download this patch

Patch contents

#! /bin/sh /usr/share/dpatch/dpatch-run
## 07_fix-need-recoding-detection.dpatch by Tobias Grimm <etobi@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Check encoding for every SVDRP connection

@DPATCH@
diff -urNad vdradmin-am-3.6.5~/vdradmind vdradmin-am-3.6.5/vdradmind
--- vdradmin-am-3.6.5~/vdradmind.pl	2010-01-14 20:23:06.000000000 +0100
+++ vdradmin-am-3.6.5/vdradmind.pl	2010-01-14 20:55:05.000000000 +0100
@@ -6718,11 +6718,11 @@
         $line =~ /^220.*VideoDiskRecorder (\d+)\.(\d+)\.(\d+).*;/;
         $VDRVERSION_HR = "$1.$2.$3";
         $VDRVERSION    = ($1 * 10000 + $2 * 100 + $3);
-        $line =~ /^220.*VideoDiskRecorder (\d+)\.(\d+)\.(\d+).*; .*; (.*)\r|$/;
-        $VDR_ENCODING = $4;
-        $need_recode = ($can_use_encode and $VDR_ENCODING and $VDR_ENCODING ne $MY_ENCODING) ? 1 : 0;
         getSupportedFeatures($this);
     }
+    $line =~ /^220.*VideoDiskRecorder (\d+)\.(\d+)\.(\d+).*; .*; (.*)\r|$/;
+    $VDR_ENCODING = $4;
+    $need_recode = ($can_use_encode and $VDR_ENCODING and $VDR_ENCODING ne $MY_ENCODING) ? 1 : 0;
 }
 
 sub getSupportedFeatures {