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