http_streamer: improve IsRunning() safeness
This commit is contained in:
@@ -195,11 +195,12 @@ HTTPMediaIO::Open()
|
||||
bool
|
||||
HTTPMediaIO::IsRunning() const
|
||||
{
|
||||
BHttpRequest* httpReq = dynamic_cast<BHttpRequest*>(fReq);
|
||||
if (httpReq != NULL)
|
||||
if (fListener != NULL)
|
||||
return fListener->IsRunning();
|
||||
else
|
||||
else if (fReq != NULL)
|
||||
return fReq->IsRunning();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user