fix client check supported_hwcodec bug

This commit is contained in:
csf
2022-09-29 14:09:40 +08:00
parent 7457551b21
commit cae2c2942e
2 changed files with 5 additions and 5 deletions

View File

@@ -1319,7 +1319,7 @@ impl LoginConfigHandler {
self.conn_id = pi.conn_id;
// no matter if change, for update file time
self.save_config(config);
#[cfg(feature = "hwcodec")]
#[cfg(any(feature = "hwcodec", feature = "mediacodec"))]
{
self.supported_encoding = Some((pi.encoding.h264, pi.encoding.h265));
}