From 54fcea0474ca786a9fc8768b72cf91ab80ff0e20 Mon Sep 17 00:00:00 2001 From: Mathis Engelbart Date: Mon, 6 May 2024 11:26:49 +0200 Subject: [PATCH] Use a valid start group/object location --- session.go | 4 ++-- session_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/session.go b/session.go index 0a49fd3..53ab262 100644 --- a/session.go +++ b/session.go @@ -597,8 +597,8 @@ func (s *Session) Subscribe(ctx context.Context, subscribeID, trackAlias uint64, TrackAlias: trackAlias, TrackNamespace: namespace, TrackName: trackname, - StartGroup: Location{}, - StartObject: Location{}, + StartGroup: Location{LocationModeAbsolute, 0x00}, + StartObject: Location{LocationModeAbsolute, 0x00}, EndGroup: Location{}, EndObject: Location{}, Parameters: map[uint64]parameter{}, diff --git a/session_test.go b/session_test.go index bd5cb27..8bd6848 100644 --- a/session_test.go +++ b/session_test.go @@ -157,8 +157,8 @@ func TestSession(t *testing.T) { TrackAlias: 0, TrackNamespace: "namespace", TrackName: "track", - StartGroup: Location{}, - StartObject: Location{}, + StartGroup: Location{LocationModeAbsolute, 0x00}, + StartObject: Location{LocationModeAbsolute, 0x00}, EndGroup: Location{}, EndObject: Location{}, Parameters: map[uint64]parameter{authorizationParameterKey: stringParameter{k: authorizationParameterKey, v: "auth"}},