summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuo Jinghua <sunmoon1997@gmail.com>2009-08-27 23:21:56 +0800
committerLuo Jinghua <sunmoon1997@gmail.com>2009-08-27 23:21:56 +0800
commit88c6fcfe457a3c8699025a75ceff635231d59b36 (patch)
tree9a85192a1cdef6896e2f48dd24d56fed3b26add8 /src
parentd0f1d6d5113b539d6bf310adce899aab37885bc0 (diff)
ppssrc: read bytes from network may be short then expected
Diffstat (limited to 'src')
-rw-r--r--src/gstppssrc.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/gstppssrc.c b/src/gstppssrc.c
index 9b00ac2..7b3b27d 100644
--- a/src/gstppssrc.c
+++ b/src/gstppssrc.c
@@ -359,13 +359,6 @@ gst_pps_src_create (GstBaseSrc * psrc, guint64 offset, guint length,
if (ret == 0 || src->read_position == src->content_size || src->fd < 0)
goto eos;
- /* seekable regular files should have given us what we expected */
- if (G_UNLIKELY ((guint) ret < length && src->seekable))
- goto unexpected_eos;
-
- /* other files should eos if they read 0 and more was requested */
- if (G_UNLIKELY (ret == 0 && length > 0))
- goto eos;
length = ret;
@@ -391,13 +384,6 @@ could_not_read:
gst_buffer_unref (buf);
return GST_FLOW_ERROR;
}
-unexpected_eos:
- {
- GST_ELEMENT_ERROR (src, RESOURCE, READ, (NULL),
- ("unexpected end of file."));
- gst_buffer_unref (buf);
- return GST_FLOW_ERROR;
- }
eos:
{
GST_DEBUG ("non-regular file hits EOS");