Commit d0c148c3 authored by Kevin Cozens's avatar Kevin Cozens

Wrong argument was passed to init() in decode_frame(). Call init() in

* operations/io/ff-load.c: Wrong argument was passed to init() in
decode_frame(). Call init() in prepare() instead of using attach hook.

svn path=/trunk/; revision=2041
parent 6943daaa
2008-02-18 Kevin Cozens <kcozens@cvs.gnome.org>
* operations/io/ff-load.c: Wrong argument was passed to init() in
decode_frame(). Call init() in prepare() instead of using attach hook.
2008-02-18 Øyvind Kolås <pippin@gimp.org>
* operations/render/checkerboard.c: make the minimum allowed
......
......@@ -183,7 +183,7 @@ decode_frame (GeglOperation *operation,
/* seeking backwards, since it ffmpeg doesn't allow us,. we'll reload the file */
g_free (p->loadedfilename);
p->loadedfilename = NULL;
init (operation);
init (o);
}
while (decodeframe <= frame)
......@@ -240,6 +240,9 @@ prepare (GeglOperation *operation)
gegl_operation_set_format (operation, "output", babl_format ("R'G'B'A u8"));
if (p == NULL)
init (o);
if (!p->loadedfilename ||
strcmp (p->loadedfilename, o->path))
{
......@@ -427,7 +430,6 @@ operation_class_init (GeglChantClass *klass)
source_class->process = process;
operation_class->get_bounding_box = get_bounding_box;
operation_class->prepare = prepare;
operation_class->attach = init;
operation_class->name = "ff-load";
operation_class->categories = "input:video";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment