+/* TRUE if the filesize of the file was updated */
+static gboolean
+gst_filesrc_check_filesize (GstFileSrc *src)
+{
+ struct stat stat_results;
+
+ g_return_val_if_fail (GST_FLAG_IS_SET (src ,GST_FILESRC_OPEN), FALSE);
+
+ fstat(src->fd, &stat_results);
+ GST_DEBUG_OBJECT (src, "checked filesize on %s (was %"G_GUINT64_FORMAT", is %"G_GUINT64_FORMAT")",
+ src->filename, src->filelen, (guint64) stat_results.st_size);
+ if (src->filelen == (guint64) stat_results.st_size)
+ return FALSE;
+ src->filelen = stat_results.st_size;
+ return TRUE;
+}