diff options
author | Matthias Hopf <mat@mshopf.de> | 2008-08-08 15:39:37 +0200 |
---|---|---|
committer | Matthias Hopf <mat@mshopf.de> | 2008-08-08 15:39:37 +0200 |
commit | 93f518565b5f53c795aeddf544f3582d44ff9fe6 (patch) | |
tree | f79884a40a9f80068b15d1c9cc8cb7660a1bf3fb /src/demuxers/demux_ogg.c | |
parent | 6f79d815918aa83d706b6dc6722c2006f27e8084 (diff) | |
parent | 8c24b5cd856fa47f605eba68ec0a49bd4d47d7da (diff) | |
download | xine-lib-93f518565b5f53c795aeddf544f3582d44ff9fe6.tar.gz xine-lib-93f518565b5f53c795aeddf544f3582d44ff9fe6.tar.bz2 |
Merge.
Diffstat (limited to 'src/demuxers/demux_ogg.c')
-rw-r--r-- | src/demuxers/demux_ogg.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/demuxers/demux_ogg.c b/src/demuxers/demux_ogg.c index 2cbba982f..9e9de45aa 100644 --- a/src/demuxers/demux_ogg.c +++ b/src/demuxers/demux_ogg.c @@ -1357,7 +1357,7 @@ static void send_header (demux_ogg_t *this) { this->ignore_keyframes = 0; while (!done) { - if (!read_ogg_packet(this)) { + if (!read_ogg_packet(this) || !this->og.header || !this->og.body) { return; } /* now we've got at least one new page */ @@ -1483,6 +1483,12 @@ static int demux_ogg_send_chunk (demux_plugin_t *this_gen) { return this->status; } + if (!this->og.header || !this->og.body) { + this->status = DEMUX_FINISHED; + lprintf ("EOF\n"); + return this->status; + } + /* now we've got one new page */ cur_serno = ogg_page_serialno (&this->og); |