changeset 28823:9a5b8c2ed6de

Make ao_info_t structs const.
author reimar
date Fri, 06 Mar 2009 19:43:12 +0000
parents 2c00a46b99c8
children f92673eb6683
files libao2/ao_alsa.c libao2/ao_alsa5.c libao2/ao_arts.c libao2/ao_dart.c libao2/ao_dsound.c libao2/ao_dxr2.c libao2/ao_esd.c libao2/ao_ivtv.c libao2/ao_jack.c libao2/ao_macosx.c libao2/ao_mpegpes.c libao2/ao_nas.c libao2/ao_null.c libao2/ao_openal.c libao2/ao_oss.c libao2/ao_pcm.c libao2/ao_pulse.c libao2/ao_sdl.c libao2/ao_sgi.c libao2/ao_sun.c libao2/ao_v4l2.c libao2/ao_win32.c libao2/audio_out.h
diffstat 23 files changed, 23 insertions(+), 23 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_alsa.c	Fri Mar 06 19:23:24 2009 +0000
+++ b/libao2/ao_alsa.c	Fri Mar 06 19:43:12 2009 +0000
@@ -57,7 +57,7 @@
 #include "audio_out_internal.h"
 #include "libaf/af_format.h"
 
-static ao_info_t info = 
+static const ao_info_t info = 
 {
     "ALSA-0.9.x-1.x audio output",
     "alsa",
--- a/libao2/ao_alsa5.c	Fri Mar 06 19:23:24 2009 +0000
+++ b/libao2/ao_alsa5.c	Fri Mar 06 19:43:12 2009 +0000
@@ -32,7 +32,7 @@
 #include "mp_msg.h"
 #include "help_mp.h"
 
-static ao_info_t info = 
+static const ao_info_t info = 
 {
     "ALSA-0.5.x audio output",
     "alsa5",
--- a/libao2/ao_arts.c	Fri Mar 06 19:23:24 2009 +0000
+++ b/libao2/ao_arts.c	Fri Mar 06 19:43:12 2009 +0000
@@ -38,7 +38,7 @@
 
 static arts_stream_t stream;
 
-static ao_info_t info =
+static const ao_info_t info =
 {
     "aRts audio output",
     "arts",
--- a/libao2/ao_dart.c	Fri Mar 06 19:23:24 2009 +0000
+++ b/libao2/ao_dart.c	Fri Mar 06 19:43:12 2009 +0000
@@ -39,7 +39,7 @@
 #include "libvo/fastmemcpy.h"
 #include "subopt-helper.h"
 
-static ao_info_t info = {
+static const ao_info_t info = {
     "DART audio output",
     "dart",
     "KO Myung-Hun <komh@chollian.net>",
--- a/libao2/ao_dsound.c	Fri Mar 06 19:23:24 2009 +0000
+++ b/libao2/ao_dsound.c	Fri Mar 06 19:43:12 2009 +0000
@@ -42,7 +42,7 @@
 #include "subopt-helper.h"
 
 
-static ao_info_t info =
+static const ao_info_t info =
 {
 	"Windows DirectSound audio output",
 	"dsound",
--- a/libao2/ao_dxr2.c	Fri Mar 06 19:23:24 2009 +0000
+++ b/libao2/ao_dxr2.c	Fri Mar 06 19:43:12 2009 +0000
@@ -36,7 +36,7 @@
 #include "libmpdemux/mpeg_packetizer.h"
 
 
-static ao_info_t info =
+static const ao_info_t info =
 {
 	"DXR2 audio output",
 	"dxr2",
--- a/libao2/ao_esd.c	Fri Mar 06 19:23:24 2009 +0000
+++ b/libao2/ao_esd.c	Fri Mar 06 19:43:12 2009 +0000
@@ -67,7 +67,7 @@
 #define	ESD_CLIENT_NAME	"MPlayer"
 #define	ESD_MAX_DELAY	(1.0f)	/* max amount of data buffered in esd (#sec) */
 
-static ao_info_t info =
+static const ao_info_t info =
 {
     "EsounD audio output",
     "esd",
--- a/libao2/ao_ivtv.c	Fri Mar 06 19:23:24 2009 +0000
+++ b/libao2/ao_ivtv.c	Fri Mar 06 19:43:12 2009 +0000
@@ -41,7 +41,7 @@
 
 static int freq = 0;
 
-static ao_info_t info = 
+static const ao_info_t info = 
 {
   "IVTV MPEG Audio Decoder output",
   "ivtv",
--- a/libao2/ao_jack.c	Fri Mar 06 19:23:24 2009 +0000
+++ b/libao2/ao_jack.c	Fri Mar 06 19:43:12 2009 +0000
@@ -40,7 +40,7 @@
 
 #include <jack/jack.h>
 
-static ao_info_t info = 
+static const ao_info_t info = 
 {
   "JACK audio output",
   "jack",
--- a/libao2/ao_macosx.c	Fri Mar 06 19:23:24 2009 +0000
+++ b/libao2/ao_macosx.c	Fri Mar 06 19:43:12 2009 +0000
@@ -53,7 +53,7 @@
 #include "libaf/af_format.h"
 #include "osdep/timer.h"
 
-static ao_info_t info =
+static const ao_info_t info =
   {
     "Darwin/Mac OS X native audio output",
     "macosx",
--- a/libao2/ao_mpegpes.c	Fri Mar 06 19:23:24 2009 +0000
+++ b/libao2/ao_mpegpes.c	Fri Mar 06 19:43:12 2009 +0000
@@ -63,7 +63,7 @@
 
 #include <errno.h>
 
-static ao_info_t info = 
+static const ao_info_t info = 
 {
 #ifdef CONFIG_DVB
 	"DVB audio output",
--- a/libao2/ao_nas.c	Fri Mar 06 19:23:24 2009 +0000
+++ b/libao2/ao_nas.c	Fri Mar 06 19:43:12 2009 +0000
@@ -119,7 +119,7 @@
 	return nas_states[state];
 }
 
-static ao_info_t info = 
+static const ao_info_t info = 
 {
 	"NAS audio output",
 	"nas",
--- a/libao2/ao_null.c	Fri Mar 06 19:23:24 2009 +0000
+++ b/libao2/ao_null.c	Fri Mar 06 19:43:12 2009 +0000
@@ -27,7 +27,7 @@
 #include "audio_out.h"
 #include "audio_out_internal.h"
 
-static ao_info_t info = 
+static const ao_info_t info = 
 {
 	"Null audio output",
 	"null",
--- a/libao2/ao_openal.c	Fri Mar 06 19:23:24 2009 +0000
+++ b/libao2/ao_openal.c	Fri Mar 06 19:43:12 2009 +0000
@@ -42,7 +42,7 @@
 #include "osdep/timer.h"
 #include "subopt-helper.h"
 
-static ao_info_t info = 
+static const ao_info_t info = 
 {
   "OpenAL audio output",
   "openal",
--- a/libao2/ao_oss.c	Fri Mar 06 19:23:24 2009 +0000
+++ b/libao2/ao_oss.c	Fri Mar 06 19:43:12 2009 +0000
@@ -48,7 +48,7 @@
 #include "audio_out.h"
 #include "audio_out_internal.h"
 
-static ao_info_t info = 
+static const ao_info_t info = 
 {
 	"OSS/ioctl audio output",
 	"oss",
--- a/libao2/ao_pcm.c	Fri Mar 06 19:23:24 2009 +0000
+++ b/libao2/ao_pcm.c	Fri Mar 06 19:43:12 2009 +0000
@@ -35,7 +35,7 @@
 #include "help_mp.h"
 
 
-static ao_info_t info = 
+static const ao_info_t info = 
 {
 	"RAW PCM/WAVE file writer audio output",
 	"pcm",
--- a/libao2/ao_pulse.c	Fri Mar 06 19:23:24 2009 +0000
+++ b/libao2/ao_pulse.c	Fri Mar 06 19:43:12 2009 +0000
@@ -33,7 +33,7 @@
 #define PULSE_CLIENT_NAME "MPlayer"
 
 /** General driver info */
-static ao_info_t info = {
+static const ao_info_t info = {
     "PulseAudio audio output",
     "pulse",
     "Lennart Poettering",
--- a/libao2/ao_sdl.c	Fri Mar 06 19:23:24 2009 +0000
+++ b/libao2/ao_sdl.c	Fri Mar 06 19:43:12 2009 +0000
@@ -38,7 +38,7 @@
 
 #include "libvo/fastmemcpy.h"
 
-static ao_info_t info = 
+static const ao_info_t info = 
 {
 	"SDLlib audio output",
 	"sdl",
--- a/libao2/ao_sgi.c	Fri Mar 06 19:23:24 2009 +0000
+++ b/libao2/ao_sgi.c	Fri Mar 06 19:43:12 2009 +0000
@@ -32,7 +32,7 @@
 #include "help_mp.h"
 #include "libaf/af_format.h"
 
-static ao_info_t info = 
+static const ao_info_t info = 
 {
 	"sgi audio output",
 	"sgi",
--- a/libao2/ao_sun.c	Fri Mar 06 19:23:24 2009 +0000
+++ b/libao2/ao_sun.c	Fri Mar 06 19:43:12 2009 +0000
@@ -49,7 +49,7 @@
 #include "mp_msg.h"
 #include "help_mp.h"
 
-static ao_info_t info = 
+static const ao_info_t info = 
 {
     "Sun audio output",
     "sun",
--- a/libao2/ao_v4l2.c	Fri Mar 06 19:23:24 2009 +0000
+++ b/libao2/ao_v4l2.c	Fri Mar 06 19:43:12 2009 +0000
@@ -38,7 +38,7 @@
 
 static int freq = 0;
 
-static ao_info_t info = 
+static const ao_info_t info = 
 {
   "V4L2 MPEG Audio Decoder output",
   "v4l2",
--- a/libao2/ao_win32.c	Fri Mar 06 19:23:24 2009 +0000
+++ b/libao2/ao_win32.c	Fri Mar 06 19:43:12 2009 +0000
@@ -90,7 +90,7 @@
 static volatile int buf_read=0;
 
 
-static ao_info_t info =
+static const ao_info_t info =
 {
 	"Windows waveOut audio output",
 	"win32",
--- a/libao2/audio_out.h	Fri Mar 06 19:23:24 2009 +0000
+++ b/libao2/audio_out.h	Fri Mar 06 19:43:12 2009 +0000
@@ -34,7 +34,7 @@
 /* interface towards mplayer and */
 typedef struct ao_functions_s
 {
-	ao_info_t *info;
+	const ao_info_t *info;
         int (*control)(int cmd,void *arg);
         int (*init)(int rate,int channels,int format,int flags);
         void (*uninit)(int immed);