From b6d45c8704e2f0ad1c1082e78f51bb63aaf38f71 Mon Sep 17 00:00:00 2001 From: Christian Wieninger Date: Wed, 30 May 2007 17:30:00 +0000 Subject: - now using own MD5 algorithm --- recordings.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'recordings.cpp') diff --git a/recordings.cpp b/recordings.cpp index 6a66a77..67b3724 100644 --- a/recordings.cpp +++ b/recordings.cpp @@ -22,7 +22,8 @@ namespace vdrlive { string RecordingsManager::Md5Hash(const cRecording* recording) const { - unsigned char md5[MD5_DIGEST_LENGTH]; + return MD5Hash(recording->FileName()); +/* unsigned char md5[MD5_DIGEST_LENGTH]; const char* fileName = recording->FileName(); MD5(reinterpret_cast(fileName), strlen(fileName), md5); @@ -31,6 +32,7 @@ namespace vdrlive { for (size_t i = 0; i < MD5_DIGEST_LENGTH; i++) hashStr << (0 + md5[i]); return hashStr.str(); +*/ } const cRecording* RecordingsManager::GetByMd5Hash(const string& hash) const -- cgit v1.2.3