summaryrefslogtreecommitdiffstats
path: root/ext/gdk_pixbuf/gstgdkanimation.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2003-11-24 22:18:07 +0000
committerBenjamin Otte <otte@gnome.org>2003-11-24 22:18:07 +0000
commit2f56fff1952c7ff3a0c85a532615c78f430444e7 (patch)
tree59577af31f27a20770a3c10bb5dd0d20c0374a66 /ext/gdk_pixbuf/gstgdkanimation.h
parent8b4dbbc0446f1b50a52b4792ba64cd9c0caeec47 (diff)
upgrades to the pixbuf loader:
Original commit message from CVS: upgrades to the pixbuf loader: - use /proc/self/fd/ to get our own handles to the given files (thanks for the hint David) - use seeking when we lag too far behind - try to seek 2 minutes into movies to get the static picture
Diffstat (limited to 'ext/gdk_pixbuf/gstgdkanimation.h')
-rw-r--r--ext/gdk_pixbuf/gstgdkanimation.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/gdk_pixbuf/gstgdkanimation.h b/ext/gdk_pixbuf/gstgdkanimation.h
index 1ac48675..183d335e 100644
--- a/ext/gdk_pixbuf/gstgdkanimation.h
+++ b/ext/gdk_pixbuf/gstgdkanimation.h
@@ -29,7 +29,9 @@
G_BEGIN_DECLS
/* how many bytes we need to have available before we dare to start a new iteration */
-#define GST_GDK_BUFFER_SIZE 102400
+#define GST_GDK_BUFFER_SIZE (102400)
+/* how far behind we need to be before we attempt to seek */
+#define GST_GDK_MAX_DELAY_TO_SEEK (GST_SECOND / 4)
#define GST_TYPE_GDK_ANIMATION (gst_gdk_animation_get_type())
@@ -97,6 +99,7 @@ struct _GstGdkAnimationIter {
/* pipeline we're using */
GstElement * pipeline;
gboolean eos;
+ gboolean just_seeked;
/* current image and the buffers containing the data */
GdkPixbuf * pixbuf;