Skip to content

Update go2rtc_integration.c#426

Open
rivandraa wants to merge 1 commit into
opensensor:mainfrom
rivandraa:patch-2
Open

Update go2rtc_integration.c#426
rivandraa wants to merge 1 commit into
opensensor:mainfrom
rivandraa:patch-2

Conversation

@rivandraa
Copy link
Copy Markdown
Contributor

  • Updated all go2rtc_stream_register calls for sub‑streams to enable the true flag in the parameter list (previously set to false).
  • This adjustment applies consistently across:
    • Registration from streams[i].sub_stream_url
    • Registration from db_streams[i].sub_stream_url
    • Registration from config.sub_stream_url

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR changes how {name}_sub streams are registered with go2rtc by flipping the record_audio boolean parameter in go2rtc_stream_register(...) from false to true for sub-stream registrations performed by the go2rtc integration layer.

Changes:

  • Enable the record_audio flag when registering sub-streams during “register all streams”.
  • Enable the record_audio flag when registering missing sub-streams during database sync.
  • Enable the record_audio flag when registering a single stream’s sub-stream.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

streams[i].onvif_username[0] != '\0' ? streams[i].onvif_username : NULL,
streams[i].onvif_password[0] != '\0' ? streams[i].onvif_password : NULL,
false, streams[i].protocol, false,
false, streams[i].protocol, true,
Comment on lines 1551 to 1555
log_info("Registering missing sub-stream %s with go2rtc", sub_name);
go2rtc_stream_register(sub_name, db_streams[i].sub_stream_url,
username, password,
false, db_streams[i].protocol, false,
false, db_streams[i].protocol, true,
db_streams[i].codec);
Comment on lines 1951 to 1955
go2rtc_stream_register(sub_name, config.sub_stream_url,
username[0] != '\0' ? username : NULL,
password[0] != '\0' ? password : NULL,
false, config.protocol, false,
false, config.protocol, true,
config.codec);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants