mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-16 13:05:59 +08:00
Fix compile error when config with -DENABLE_SRT=OFF (#4132)
This commit is contained in:
@@ -37,12 +37,14 @@ static bool checkMediaSourceAndUrlMatch(const MediaSource::Ptr &src, const std::
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef ENABLE_SRT
|
||||
if (strcasecmp("srt", prefix.data()) == 0) {
|
||||
auto ts_src = std::dynamic_pointer_cast<TSMediaSource>(src);
|
||||
if (!ts_src) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#endif // ENABLE_SRT
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user