diff --git a/daemon/src/Codec.h b/daemon/src/Codec.h index c432a039e33159c227451edc8dc231b90f1389ed..0ddca0dbc361073807040f3c53c79ff0bc3a8404 100644 --- a/daemon/src/Codec.h +++ b/daemon/src/Codec.h @@ -30,7 +30,7 @@ #ifndef __SFL_CODEC_H__ #define __SFL_CODEC_H__ -#include <cc++/digest.h> +#include <cc++/config.h> // for types /** * Interface for both audio codecs as well as video codecs. @@ -65,36 +65,6 @@ class Codec * @return The bitrate for which this codec is configured // TODO deal with VBR case. */ virtual double getBitRate() const = 0; - - /** - * Build a unique hash code for identifying the codec uniquely. - * Note that if multiple implementations of codec are provided, - * one should override this function in order to avoid conflicting - * hash codes. - * - * Hash code is a CRC32 digest made from : - * MIME "." MIME SUBTYPE "." PAYLOAD TYPE "." PAYLOAD CLOCKRATE - * - * @return a unique hash code identifying this codec. - */ - virtual std::string hashCode() const { - ost::CRC32Digest digest; - - std::ostringstream os; - os << getMimeType() - << "." << getMimeSubtype() - << "." << getPayloadType() - << "." << getClockRate(); - - std::string concat = os.str(); - - digest.putDigest ( (const unsigned char*) concat.c_str(), concat.length()); - - std::ostringstream buffer; - buffer << digest; - - return buffer.str(); - } }; }