From 020ebf9ca2cba65607f16ad7377e8d59e2f47ec2 Mon Sep 17 00:00:00 2001 From: "N.N." Date: Thu, 25 Mar 2010 23:55:15 +0000 Subject: Recomended load before Gem svn path=/trunk/externals/pdvjtools/; revision=13272 --- videogrid/videogrid.cc | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/videogrid/videogrid.cc b/videogrid/videogrid.cc index fbb2d00..2b4897d 100644 --- a/videogrid/videogrid.cc +++ b/videogrid/videogrid.cc @@ -35,6 +35,7 @@ extern "C" * incloure estructures de dades i capceleres de funcions gàfiques bàsiques de pd */ #include "g_canvas.h" + #include "s_stuff.h" /* * incloure estructures de dades i capceleres de funcions per traballar amb threads */ @@ -50,6 +51,7 @@ extern "C" #include #include + /* may be your ffmpeg headers are here, at least from jaunty to karmic */ /* #include @@ -86,6 +88,9 @@ extern "C" typedef char tipus_format[BYTESTIPUSFROMAT]; + t_namelist *loaded_libs = NULL; + + /* ----------------------------------- FFmpeg functions ----------------------------------- */ int convertir_img_ff(pathimage pathFitxer, tipus_format f, int W, int H, int posi); @@ -1727,6 +1732,33 @@ extern "C" * printf("S'ha instanciat un videogrid anomenat %s amb les caracteristiques seguents:",x->x_name->s_name); * printf("Nombre de files %d - Nombre de columnes: %d", x->x_num_fil, x->x_num_col); */ + /* a Karmic es detecta que videogrid fa crash al pd al insertar un video, nomes en el cas que es carregui despres de Gem */ + + + char *lliibbGem = "Gem"; + char *lliibbVideogrid = "videogrid"; + /* + if(sys_load_lib(glist_getcanvas(x->x_glist), lliibb)){ + post("SLL diu Gem already loaded"); + } else{ + post("SLL diu Gem not loaded"); + }*/ + + int i, posGem = 0, posVideogrid = 0; + t_namelist *nl; + + for (i=0, nl = sys_externlist; nl; i++, nl = nl->nl_next) { + if(strcmp(nl->nl_string,lliibbGem)==0) { + posGem = i; + } else { + if(strcmp(nl->nl_string,lliibbVideogrid)==0) { + posVideogrid = i; + } + } + } + if(posGem < posVideogrid) { + post("NOTE videogrid: Recomended load before Gem.\n"); + } return (x); } @@ -1748,6 +1780,7 @@ extern "C" post("videogrid: version 0.2.1"); post("written by Sergi Lario (slario@gmail.com) & Lluis Gomez i Bigorda (lluis@artefacte.org)"); + videogrid_class = class_new(gensym("videogrid"), (t_newmethod)videogrid_new, (t_method)videogrid_destroy, -- cgit v1.2.1