mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-08-05 08:16:03 +08:00
fix frame timing feature in webrtcd (#38090)
fix misreference to video_tracks in webrtcd
This commit is contained in:
@@ -192,9 +192,8 @@ class StreamSession:
|
||||
|
||||
if msg_type == "enableTimingSei":
|
||||
enabled = bool(payload.get("data", {}).get("enabled"))
|
||||
for track in self.video_tracks:
|
||||
if hasattr(track, 'timing_sei_enabled'):
|
||||
track.timing_sei_enabled = enabled
|
||||
if hasattr(self.video_track, 'timing_sei_enabled'):
|
||||
self.video_track.timing_sei_enabled = enabled
|
||||
return
|
||||
|
||||
if payload.get("type") not in self.incoming_bridge_services:
|
||||
|
||||
Reference in New Issue
Block a user