mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +08:00
消除编译警告
This commit is contained in:
parent
800b0d81f3
commit
b3554fb721
@ -39,7 +39,7 @@ Frame::Ptr Frame::getCacheAbleFrame(const Frame::Ptr &frame){
|
||||
}
|
||||
|
||||
#define SWITCH_CASE(codec_id) case codec_id : return #codec_id
|
||||
char *CodecInfo::getCodecName() {
|
||||
const char *CodecInfo::getCodecName() {
|
||||
switch (getCodecId()) {
|
||||
SWITCH_CASE(CodecH264);
|
||||
SWITCH_CASE(CodecH265);
|
||||
|
@ -77,7 +77,7 @@ public:
|
||||
* 获取编码器名称
|
||||
* @return 编码器名称
|
||||
*/
|
||||
char *getCodecName();
|
||||
const char *getCodecName();
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user