mirror of
https://github.com/mpv-player/mpv
synced 2025-02-17 04:58:06 +00:00
don't read past the end of the selected track
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15913 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5ad888565f
commit
047325d99f
@ -53,6 +53,8 @@ static struct m_struct_st stream_opts = {
|
||||
};
|
||||
|
||||
static int fill_buffer(stream_t *s, char* buffer, int max_len){
|
||||
if(s->pos > s->end_pos) /// don't past end of current track
|
||||
return 0;
|
||||
return vcd_read(s->priv,buffer);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user