mark native sync as same-domain

This commit is contained in:
Dmitry Sergeev
2026-08-26 23:56:22 +03:00
parent 078f866234
commit e6a5e12d68
2 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -305,7 +305,10 @@ type SyncSource struct {
width, height, stride uint32
}
func OpenSync(domain, videoFlow, audioFlow string) (*SyncSource, error) {
// OpenSameDomainSync opens a native MXL synchronization group.
// Both feeds must belong to the supplied domain because go-mxl sync groups
// cannot contain readers from different MXL instances.
func OpenSameDomainSync(domain, videoFlow, audioFlow string) (*SyncSource, error) {
inst, err := mxl.NewInstance(domain, "")
if err != nil {
return nil, fmt.Errorf("NewInstance: %w", err)