mirror of
https://github.com/isledecomp/isle.git
synced 2026-02-03 05:31:17 +00:00
matched GetOpenStream
This commit is contained in:
parent
31517dac66
commit
20ab62de1a
@ -78,8 +78,10 @@ MxLong MxStreamer::Close(const char *p)
|
|||||||
MxStreamController *MxStreamer::GetOpenStream(const char *p_name)
|
MxStreamController *MxStreamer::GetOpenStream(const char *p_name)
|
||||||
{
|
{
|
||||||
for (list<MxStreamController *>::iterator it = m_openStreams.begin(); it != m_openStreams.end(); it++) {
|
for (list<MxStreamController *>::iterator it = m_openStreams.begin(); it != m_openStreams.end(); it++) {
|
||||||
|
MxStreamController *c = *it;
|
||||||
|
MxAtomId &atom = c->atom;
|
||||||
if (p_name) {
|
if (p_name) {
|
||||||
if (!strcmp(((*it)->atom.GetInternal()), p_name)) {
|
if (!strcmp(atom.GetInternal(), p_name)) {
|
||||||
return *it;
|
return *it;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user