From d4cddf460a5145965b398e167f3cea24b5e3e436 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 16 Jan 2023 16:19:17 +0100 Subject: [bugfix] Parse video metadata more accurately; allow Range in fileserver (#1342) * don't serve unused fields for video attachments * parse video bitrate + duration more accurately * use ServeContent where appropriate to respect Range * abstract temp file seeker into its own function --- internal/api/client/media/mediacreate_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/api/client/media/mediacreate_test.go') diff --git a/internal/api/client/media/mediacreate_test.go b/internal/api/client/media/mediacreate_test.go index 6ac63a356..320636721 100644 --- a/internal/api/client/media/mediacreate_test.go +++ b/internal/api/client/media/mediacreate_test.go @@ -201,7 +201,7 @@ func (suite *MediaCreateTestSuite) TestMediaCreateSuccessful() { Size: "512x288", Aspect: 1.7777778, }, - Focus: apimodel.MediaFocus{ + Focus: &apimodel.MediaFocus{ X: -0.5, Y: 0.5, }, @@ -290,7 +290,7 @@ func (suite *MediaCreateTestSuite) TestMediaCreateSuccessfulV2() { Size: "512x288", Aspect: 1.7777778, }, - Focus: apimodel.MediaFocus{ + Focus: &apimodel.MediaFocus{ X: -0.5, Y: 0.5, }, -- cgit v1.2.3