http_streamer: Handle Run() failed
This commit is contained in:
@@ -77,7 +77,7 @@ HTTPMediaIO::HTTPMediaIO(BUrl url)
|
|||||||
BAdapterIO(
|
BAdapterIO(
|
||||||
B_MEDIA_STREAMING | B_MEDIA_SEEK_BACKWARD,
|
B_MEDIA_STREAMING | B_MEDIA_SEEK_BACKWARD,
|
||||||
B_INFINITE_TIMEOUT),
|
B_INFINITE_TIMEOUT),
|
||||||
fInitErr(B_OK)
|
fInitErr(B_ERROR)
|
||||||
{
|
{
|
||||||
fContext = new BUrlContext();
|
fContext = new BUrlContext();
|
||||||
fContext->AcquireReference();
|
fContext->AcquireReference();
|
||||||
@@ -90,7 +90,10 @@ HTTPMediaIO::HTTPMediaIO(BUrl url)
|
|||||||
if (fReq == NULL)
|
if (fReq == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
fReq->Run();
|
if (fReq->Run() < 0)
|
||||||
|
return;
|
||||||
|
|
||||||
|
fInitErr = B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user