Skip to content

Commit

Permalink
Fix compilation error.
Browse files Browse the repository at this point in the history
Silly mistake
  • Loading branch information
jyavenard committed Aug 10, 2012
1 parent a52ec1d commit dfc0c1f
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions mythtv/libs/libmythtv/HLS/httplivestreambuffer.cpp
Expand Up @@ -746,6 +746,19 @@ class HLSStream
m_targetduration : upd.m_targetduration;
m_cache = upd.m_cache;
}
void Cancel(void)
{
QMutexLocker lock(&m_lock);
QList<HLSSegment*>::iterator it = m_segments.begin();
for (; it != m_segments.end(); ++it)
{
if (*it)
{
(*it)->CancelDownload();
}
}
}

#ifdef USING_LIBCRYPTO
/**
* Will download all required segment AES-128 keys
Expand Down Expand Up @@ -812,19 +825,6 @@ class HLSStream
m_keypath = x;
}

void Cancel(void)
{
QMutexLocker lock(&m_lock);
QList<HLSSegment*>::iterator it = m_segments.begin();
for (; it != m_segments.end(); ++it)
{
if (*it)
{
(*it)->CancelDownload();
}
}
}

private:
QString m_keypath; // URL path of the encrypted key
bool m_ivloaded;
Expand Down

0 comments on commit dfc0c1f

Please sign in to comment.