From 2f56fff1952c7ff3a0c85a532615c78f430444e7 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 24 Nov 2003 22:18:07 +0000 Subject: 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 --- ext/gdk_pixbuf/gstgdkanimation.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ext/gdk_pixbuf/gstgdkanimation.h') 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; -- cgit