Skip to content

Commit

Permalink
http_streamer: Handle Run() failed
Browse files Browse the repository at this point in the history
  • Loading branch information
Numerio committed Jun 25, 2016
1 parent 4dd09da commit 241a329
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/add-ons/media/plugins/http_streamer/HTTPMediaIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ HTTPMediaIO::HTTPMediaIO(BUrl url)
BAdapterIO(
B_MEDIA_STREAMING | B_MEDIA_SEEK_BACKWARD,
B_INFINITE_TIMEOUT),
fInitErr(B_OK)
fInitErr(B_ERROR)
{
fContext = new BUrlContext();
fContext->AcquireReference();
Expand All @@ -90,7 +90,10 @@ HTTPMediaIO::HTTPMediaIO(BUrl url)
if (fReq == NULL)
return;

fReq->Run();
if (fReq->Run() < 0)
return;

fInitErr = B_OK;
}


Expand Down

0 comments on commit 241a329

Please sign in to comment.