Commit 3bc30b81 authored by Laurent Aimar's avatar Laurent Aimar

* all: clean up.

        use vout_Request to release the vout (so vout isn't closed when
        changing playlist item).
parent 07d406a6
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* effects.c : Effects for the visualization system * effects.c : Effects for the visualization system
***************************************************************************** *****************************************************************************
* Copyright (C) 2002 VideoLAN * Copyright (C) 2002 VideoLAN
* $Id: effects.c,v 1.6 2003/09/08 22:00:47 zorglub Exp $ * $Id: effects.c,v 1.7 2003/09/20 00:37:53 fenrir Exp $
* *
* Authors: Clment Stenac <zorglub@via.ecp.fr> * Authors: Clment Stenac <zorglub@via.ecp.fr>
* *
...@@ -24,6 +24,12 @@ ...@@ -24,6 +24,12 @@
/***************************************************************************** /*****************************************************************************
* Preamble * Preamble
*****************************************************************************/ *****************************************************************************/
#include <stdlib.h> /* malloc(), free() */
#include <vlc/vlc.h>
#include <vlc/vout.h>
#include "audio_output.h"
#include "aout_internal.h"
#include "visual.h" #include "visual.h"
#include <math.h> #include <math.h>
......
This diff is collapsed.
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* visual.h : Header for the visualisation system * visual.h : Header for the visualisation system
***************************************************************************** *****************************************************************************
* Copyright (C) 2002 VideoLAN * Copyright (C) 2002 VideoLAN
* $Id: visual.h,v 1.4 2003/09/10 10:21:09 zorglub Exp $ * $Id: visual.h,v 1.5 2003/09/20 00:37:53 fenrir Exp $
* *
* Authors: Clment Stenac <zorglub@via.ecp.fr> * Authors: Clment Stenac <zorglub@via.ecp.fr>
* *
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
...@@ -21,48 +21,36 @@ ...@@ -21,48 +21,36 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/ *****************************************************************************/
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h> /* malloc(), free() */
#include <string.h> /* strdup() */
#include <errno.h>
#include <vlc/vlc.h>
#include <vlc/vout.h>
#include "audio_output.h"
#include "aout_internal.h"
/*****************************************************************************
* aout_filter_sys_t: visualizer audio filter method descriptor
*****************************************************************************
* This structure is part of the audio filter descriptor.
* It describes some visualizer specific variables.
*****************************************************************************/
typedef struct visual_effect_t typedef struct visual_effect_t
{ {
int (*pf_run) char * psz_name; /* Filter name*/
(struct visual_effect_t * , aout_instance_t *,
aout_buffer_t *, picture_t *); int (*pf_run)( struct visual_effect_t * , aout_instance_t *,
aout_buffer_t *, picture_t *);
void * p_data; /* The effect stores whatever it wants here */ void * p_data; /* The effect stores whatever it wants here */
char * psz_func;
struct visual_effect_t * p_next;
int i_width; int i_width;
int i_height; int i_height;
char * psz_args; char * psz_args;
int i_nb_chans; int i_nb_chans;
} visual_effect_t ; } visual_effect_t ;
struct aout_filter_sys_t /*****************************************************************************
* aout_filter_sys_t: visualizer audio filter method descriptor
*****************************************************************************
* This structure is part of the audio filter descriptor.
* It describes some visualizer specific variables.
*****************************************************************************/
typedef struct aout_filter_sys_t
{ {
vout_thread_t *p_vout; vout_thread_t *p_vout;
visual_effect_t *p_first_effect;
int i_width; int i_width;
int i_height; int i_height;
};
int i_effect;
visual_effect_t **effect;
} aout_filter_sys_t;
/* Prototypes */ /* Prototypes */
int scope_Run int scope_Run
...@@ -78,6 +66,6 @@ int blur_Run ...@@ -78,6 +66,6 @@ int blur_Run
(visual_effect_t * , aout_instance_t *, aout_buffer_t *, picture_t *); (visual_effect_t * , aout_instance_t *, aout_buffer_t *, picture_t *);
#endif #endif
/* Default vout size */ /* Default vout size */
#define VOUT_WIDTH 320 #define VOUT_WIDTH 320
#define VOUT_HEIGHT 120 #define VOUT_HEIGHT 120
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