1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
From: Boyuan Yang <byang@debian.org>
Date: Sun, 12 Jan 2025 21:34:28 +0100
Subject: Fix build failure around TagLib::ID3v2::Version
Forwarded: https://github.com/ElvishArtisan/GlassCoder/issues/27
---
src/glasscoder/hlsconnector.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/glasscoder/hlsconnector.cpp b/src/glasscoder/hlsconnector.cpp
index 8b132a9..e56c608 100644
--- a/src/glasscoder/hlsconnector.cpp
+++ b/src/glasscoder/hlsconnector.cpp
@@ -112,7 +112,7 @@ void HlsConnector::sendMetadata(MetaEvent *e)
}
AddTextIdFrame(tag,"TFLT","MPG/AAC");
- TagLib::ByteVector bytes=tag->render(4);
+ TagLib::ByteVector bytes=tag->render(TagLib::ID3v2::v4);
hls_metadata_tag=QByteArray(bytes.data(),bytes.size());
int tag_size=Connector::id3TagSize(hls_metadata_tag);
if(tag_size<hls_metadata_tag.size()) {
@@ -348,7 +348,7 @@ void HlsConnector::GetStreamTimestamp(uint8_t *bytes,uint64_t frames)
//
// ID3 PRIV tag (see HTTP Live Streaming Draft sec. 4)
//
- static uint8_t id3_header[HLS_ID3_HEADER_SIZE]=
+ static uint8_t id3_header[HLS_ID3_HEADER_SIZE]=
{0x49,0x44,0x33,0x04,0x00,0x00,0x00,0x00,
0x00,0x3F,0x50,0x52,0x49,0x56,0x00,0x00,
0x00,0x35,0x00,0x00,0x63,0x6F,0x6D,0x2E,
@@ -361,7 +361,7 @@ void HlsConnector::GetStreamTimestamp(uint8_t *bytes,uint64_t frames)
0x00};
memcpy(bytes,id3_header,HLS_ID3_HEADER_SIZE);
-
+
//
// MPEG-2 timestamps are expressed in 1/90000ths of a second
//
|