{
guint64 size, maxsize;
GstBaseSrcClass *bclass;
- GstFormat format;
gint64 stop;
+ /* only operate if we are working with bytes */
+ if (src->segment.format != GST_FORMAT_BYTES)
+ return TRUE;
+
bclass = GST_BASE_SRC_GET_CLASS (src);
- format = src->segment.format;
stop = src->segment.stop;
/* get total file size */
size = src->segment.duration;
- /* only operate if we are working with bytes */
- if (format != GST_FORMAT_BYTES)
- return TRUE;
-
/* when not doing automatic EOS, just use the stop position. We don't use
* the size to check for EOS */
if (!g_atomic_int_get (&src->priv->automatic_eos))
/* ERRORS */
unexpected_length:
{
+ GST_WARNING_OBJECT (src, "processing at or past EOS");
return FALSE;
}
}