mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
Merge remote-tracking branch 'origin/master' into 0.11
Conflicts: plugins/elements/gstfilesrc.c
This commit is contained in:
commit
81ce8b76d0
1 changed files with 5 additions and 1 deletions
|
@ -361,8 +361,12 @@ gst_file_src_fill (GstBaseSrc * basesrc, guint64 offset, guint length,
|
|||
}
|
||||
|
||||
/* files should eos if they read 0 and more was requested */
|
||||
if (G_UNLIKELY (ret == 0))
|
||||
if (G_UNLIKELY (ret == 0)) {
|
||||
/* .. but first we should return any remaining data */
|
||||
if (bytes_read > 0)
|
||||
break;
|
||||
goto eos;
|
||||
}
|
||||
|
||||
to_read -= ret;
|
||||
bytes_read += ret;
|
||||
|
|
Loading…
Reference in a new issue