summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Hopf <mhopf@suse.de>2008-12-31 22:57:02 +0100
committerMatthias Hopf <mhopf@suse.de>2008-12-31 22:57:02 +0100
commit60ddd2922aabe6704e0baa135ca54e9111782b7c (patch)
treea3fef733b1e8305c7b7793801d75f9a6d13617ea /src
parentf834d9a8a46a8d3edfea5ea1c9ee66177dee7b04 (diff)
downloadxine-lib-60ddd2922aabe6704e0baa135ca54e9111782b7c.tar.gz
xine-lib-60ddd2922aabe6704e0baa135ca54e9111782b7c.tar.bz2
handle read errors when demuxing mpeg data
Some input plugins (e.g. file) return negative error codes from read, this should be treated as no (more) data available.
Diffstat (limited to 'src')
-rw-r--r--src/demuxers/demux_mpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/demuxers/demux_mpeg.c b/src/demuxers/demux_mpeg.c
index 388be2140..4be2bfc50 100644
--- a/src/demuxers/demux_mpeg.c
+++ b/src/demuxers/demux_mpeg.c
@@ -920,7 +920,7 @@ static void demux_mpeg_resync (demux_mpeg_t *this, uint32_t buf) {
if (pos == len) {
len = this->input->read(this->input, dummy_buf, sizeof(dummy_buf));
pos = 0;
- if (len == 0) {
+ if (len <= 0) {
this->status = DEMUX_FINISHED;
break;
}