[MPlayer-cvslog] r37714 - in trunk/stream: stream_bluray.c stream_cue.c stream_dvd.c stream_dvdnav.c stream_file.c stream_ftp.c stream_netstream.c stream_smb.c stream_vcd.c stream_vstream.c
reimar
subversion at mplayerhq.hu
Sat Feb 13 19:10:51 CET 2016
Author: reimar
Date: Sat Feb 13 19:10:50 2016
New Revision: 37714
Log:
stream: Add const to options defaults.
Some like tv and dvb change them via global
options, so they cannot be made const.
But most can and are changed to const.
Modified:
trunk/stream/stream_bluray.c
trunk/stream/stream_cue.c
trunk/stream/stream_dvd.c
trunk/stream/stream_dvdnav.c
trunk/stream/stream_file.c
trunk/stream/stream_ftp.c
trunk/stream/stream_netstream.c
trunk/stream/stream_smb.c
trunk/stream/stream_vcd.c
trunk/stream/stream_vstream.c
Modified: trunk/stream/stream_bluray.c
==============================================================================
--- trunk/stream/stream_bluray.c Sat Feb 13 19:07:22 2016 (r37713)
+++ trunk/stream/stream_bluray.c Sat Feb 13 19:10:50 2016 (r37714)
@@ -54,7 +54,7 @@ struct bluray_priv_s {
int current_title;
};
-static struct stream_priv_s {
+static const struct stream_priv_s {
int title;
char *device;
} bluray_stream_priv_dflts = {
Modified: trunk/stream/stream_cue.c
==============================================================================
--- trunk/stream/stream_cue.c Sat Feb 13 19:07:22 2016 (r37713)
+++ trunk/stream/stream_cue.c Sat Feb 13 19:10:50 2016 (r37714)
@@ -52,7 +52,7 @@
#define MODE2_2336 40
#define UNKNOWN -1
-static struct stream_priv_s {
+static const struct stream_priv_s {
char* filename;
} stream_priv_dflts = {
NULL
Modified: trunk/stream/stream_dvd.c
==============================================================================
--- trunk/stream/stream_dvd.c Sat Feb 13 19:07:22 2016 (r37713)
+++ trunk/stream/stream_dvd.c Sat Feb 13 19:10:50 2016 (r37714)
@@ -62,7 +62,7 @@ int dvd_angle=1;
#endif
-static struct stream_priv_s {
+static const struct stream_priv_s {
int title;
char* device;
} stream_priv_dflts = {
Modified: trunk/stream/stream_dvdnav.c
==============================================================================
--- trunk/stream/stream_dvdnav.c Sat Feb 13 19:07:22 2016 (r37713)
+++ trunk/stream/stream_dvdnav.c Sat Feb 13 19:10:50 2016 (r37714)
@@ -72,7 +72,7 @@ typedef struct {
unsigned int state;
} dvdnav_priv_t;
-static struct stream_priv_s {
+static const struct stream_priv_s {
int track;
char* device;
} stream_priv_dflts = {
Modified: trunk/stream/stream_file.c
==============================================================================
--- trunk/stream/stream_file.c Sat Feb 13 19:07:22 2016 (r37713)
+++ trunk/stream/stream_file.c Sat Feb 13 19:10:50 2016 (r37714)
@@ -39,7 +39,7 @@
#include "osdep/osdep.h"
#include "libmpdemux/demuxer.h"
-static struct stream_priv_s {
+static const struct stream_priv_s {
char* filename;
char *filename2;
} stream_priv_dflts = {
Modified: trunk/stream/stream_ftp.c
==============================================================================
--- trunk/stream/stream_ftp.c Sat Feb 13 19:07:22 2016 (r37713)
+++ trunk/stream/stream_ftp.c Sat Feb 13 19:10:50 2016 (r37714)
@@ -42,7 +42,7 @@
#include "m_struct.h"
#include "tcp.h"
-static struct stream_priv_s {
+static const struct stream_priv_s {
char* user;
char* pass;
char* host;
Modified: trunk/stream/stream_netstream.c
==============================================================================
--- trunk/stream/stream_netstream.c Sat Feb 13 19:07:22 2016 (r37713)
+++ trunk/stream/stream_netstream.c Sat Feb 13 19:10:50 2016 (r37714)
@@ -62,7 +62,7 @@
#include "stream_netstream.h"
#include "tcp.h"
-static struct stream_priv_s {
+static const struct stream_priv_s {
char* host;
int port;
char* url;
Modified: trunk/stream/stream_smb.c
==============================================================================
--- trunk/stream/stream_smb.c Sat Feb 13 19:07:22 2016 (r37713)
+++ trunk/stream/stream_smb.c Sat Feb 13 19:10:50 2016 (r37714)
@@ -27,7 +27,7 @@
#include "m_option.h"
#include "m_struct.h"
-static struct stream_priv_s {
+static const struct stream_priv_s {
} stream_priv_dflts = {
};
Modified: trunk/stream/stream_vcd.c
==============================================================================
--- trunk/stream/stream_vcd.c Sat Feb 13 19:07:22 2016 (r37713)
+++ trunk/stream/stream_vcd.c Sat Feb 13 19:10:50 2016 (r37714)
@@ -54,7 +54,7 @@
#include "libmpdemux/demuxer.h"
-static struct stream_priv_s {
+static const struct stream_priv_s {
int track;
char* device;
} stream_priv_dflts = {
Modified: trunk/stream/stream_vstream.c
==============================================================================
--- trunk/stream/stream_vstream.c Sat Feb 13 19:07:22 2016 (r37713)
+++ trunk/stream/stream_vstream.c Sat Feb 13 19:10:50 2016 (r37714)
@@ -60,7 +60,7 @@ void vstream_error(const char *format, .
mp_msg(MSGT_STREAM, MSGL_ERR, "%s", buf);
}
-static struct stream_priv_s {
+static const struct stream_priv_s {
char* host;
char* fsid;
} stream_priv_dflts = {
More information about the MPlayer-cvslog
mailing list