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>
* *
...@@ -21,34 +21,13 @@ ...@@ -21,34 +21,13 @@
* 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 *,
int (*pf_run)( struct visual_effect_t * , aout_instance_t *,
aout_buffer_t *, picture_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;
...@@ -56,13 +35,22 @@ typedef struct visual_effect_t ...@@ -56,13 +35,22 @@ typedef struct visual_effect_t
} 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
......
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