修复流注销时,hls无法播完最后一个切片的问题: #1955

This commit is contained in:
ziyue
2022-10-18 19:23:20 +08:00
parent eac5a5b1dc
commit ff6e9f4fc7
4 changed files with 14 additions and 6 deletions

View File

@@ -91,8 +91,8 @@ public:
* 获取附加数据
*/
template <class T>
const T& getAttach() const {
return *static_cast<const T *>(_attach.get());
T& getAttach() {
return *static_cast<T *>(_attach.get());
}
private: