Skip to content

Commit bf22895

Browse files
Sergeanurccw808
authored andcommitted
Fixed 'stream_title' meta tag when the playback is started (#206)
1 parent 6152f14 commit bf22895

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Client/mods/deathmatch/logic/CBassAudio.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,19 @@ void CBassAudio::CompleteStreamConnect(HSTREAM pSound)
424424
}
425425
}
426426
}
427+
428+
const char* szMeta = BASS_ChannelGetTags(pSound, BASS_TAG_META);
429+
if (szMeta)
430+
{
431+
SString strMeta = szMeta;
432+
if (!strMeta.empty())
433+
{
434+
m_pVars->criticalSection.Lock();
435+
m_pVars->onClientSoundChangedMetaQueue.push_back(strMeta);
436+
m_pVars->criticalSection.Unlock();
437+
}
438+
}
439+
427440
// set sync for stream titles
428441
m_hSyncMeta = BASS_ChannelSetSync(pSound, BASS_SYNC_META, 0, &MetaSync, m_uiCallbackId); // Shoutcast
429442
// g_pCore->GetConsole()->Printf ( "BASS ERROR %d in BASS_SYNC_META", BASS_ErrorGetCode() );

0 commit comments

Comments
 (0)