Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixes playback of some streaming media.
For some HTTP media, ffurl_read returns 0 in the number of bytes read instead of EOF. So exit early otherwise it would loop forever
  • Loading branch information
jyavenard committed Jun 23, 2013
1 parent b16ad60 commit 2ed284b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/libs/libmythtv/streamingringbuffer.cpp
Expand Up @@ -117,6 +117,8 @@ int StreamingRingBuffer::safe_read(void *data, uint sz)
errno = ret;
break;
}
if (ret == 0) // nothing read, exit early
break; // should EOF be set ??
len += ret;
}
}
Expand Down

0 comments on commit 2ed284b

Please sign in to comment.