diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-01-03 22:38:25 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-01-03 22:38:25 +0000 |
commit | deb9a6340e65ae359293cf50785f95adf80b193d (patch) | |
tree | 4bd3bf19f582bfe8951bf65a3c9d10d23c47afd6 /src/post/goom/xine_goom.c | |
parent | 9b4c89d96993cb82c75655cf2529ab032317f36c (diff) | |
download | xine-lib-deb9a6340e65ae359293cf50785f95adf80b193d.tar.gz xine-lib-deb9a6340e65ae359293cf50785f95adf80b193d.tar.bz2 |
Siggi and i have an agreement about the preloading. :)
now any plugin may add a PLUGIN_MUST_PRELOAD to it's type and
the class initialization function will be called on xine startup.
CVS patchset: 3764
CVS date: 2003/01/03 22:38:25
Diffstat (limited to 'src/post/goom/xine_goom.c')
-rw-r--r-- | src/post/goom/xine_goom.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/post/goom/xine_goom.c b/src/post/goom/xine_goom.c index 9be2aef6b..80fc46f52 100644 --- a/src/post/goom/xine_goom.c +++ b/src/post/goom/xine_goom.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_goom.c,v 1.15 2003/01/03 21:29:20 tmattern Exp $ + * $Id: xine_goom.c,v 1.16 2003/01/03 22:38:25 miguelfreitas Exp $ * * GOOM post plugin. * @@ -93,11 +93,13 @@ static void *goom_init_plugin(xine_t *xine, void *); /* plugin catalog information */ -post_info_t goom_special_info = { XINE_POST_TYPE_AUDIO_VISUALIZATION }; +post_info_t goom_special_info = { + XINE_POST_TYPE_AUDIO_VISUALIZATION +}; plugin_info_t xine_plugin_info[] = { /* type, API, "name", version, special_info, init_function */ - { PLUGIN_POST, 2, "goom", XINE_VERSION_CODE, &goom_special_info, &goom_init_plugin }, + { PLUGIN_POST | PLUGIN_MUST_PRELOAD, 2, "goom", XINE_VERSION_CODE, &goom_special_info, &goom_init_plugin }, { PLUGIN_NONE, 0, "", 0, NULL, NULL } }; @@ -345,7 +347,7 @@ static int goom_port_open(xine_audio_port_t *port_gen, xine_stream_t *stream, this->samples_per_frame = rate / this->class->fps; this->sample_rate = rate; this->stream = stream; - init_yuv_planes(&this->yuv, GOOM_WIDTH, GOOM_HEIGHT); + init_yuv_planes(&this->yuv, this->class->width, this->class->height); return port->original_port->open(port->original_port, stream, bits, rate, mode ); } |