mirror of
https://github.com/mpv-player/mpv
synced 2024-12-27 09:32:40 +00:00
configure: Rename "network" variable and option to "networking"
This avoids conflicts with the FFmpeg variable of the same name. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31749 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
fea2d4dd45
commit
578ad534b3
2
Makefile
2
Makefile
@ -212,7 +212,7 @@ SRCS_COMMON-$(NEED_SHMEM) += osdep/shmem.c
|
|||||||
SRCS_COMMON-$(NEED_STRSEP) += osdep/strsep.c
|
SRCS_COMMON-$(NEED_STRSEP) += osdep/strsep.c
|
||||||
SRCS_COMMON-$(NEED_SWAB) += osdep/swab.c
|
SRCS_COMMON-$(NEED_SWAB) += osdep/swab.c
|
||||||
SRCS_COMMON-$(NEED_VSSCANF) += osdep/vsscanf.c
|
SRCS_COMMON-$(NEED_VSSCANF) += osdep/vsscanf.c
|
||||||
SRCS_COMMON-$(NETWORK) += stream/stream_netstream.c \
|
SRCS_COMMON-$(NETWORKING) += stream/stream_netstream.c \
|
||||||
stream/asf_mmst_streaming.c \
|
stream/asf_mmst_streaming.c \
|
||||||
stream/asf_streaming.c \
|
stream/asf_streaming.c \
|
||||||
stream/cookies.c \
|
stream/cookies.c \
|
||||||
|
12
cfg-common.h
12
cfg-common.h
@ -426,7 +426,7 @@ const m_option_t common_opts[] = {
|
|||||||
{"dvdkey", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
{"dvdkey", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
||||||
{"csslib", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
{"csslib", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
||||||
|
|
||||||
#ifdef CONFIG_NETWORK
|
#ifdef CONFIG_NETWORKING
|
||||||
{"user", &network_username, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
{"user", &network_username, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
||||||
{"passwd", &network_password, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
{"passwd", &network_password, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
||||||
{"bandwidth", &network_bandwidth, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
|
{"bandwidth", &network_bandwidth, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
|
||||||
@ -450,7 +450,7 @@ const m_option_t common_opts[] = {
|
|||||||
{"passwd", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
{"passwd", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
||||||
{"bandwidth", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
{"bandwidth", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
||||||
{"user-agent", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
{"user-agent", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
||||||
#endif /* CONFIG_NETWORK */
|
#endif /* CONFIG_NETWORKING */
|
||||||
|
|
||||||
#ifdef CONFIG_LIVE555
|
#ifdef CONFIG_LIVE555
|
||||||
{"sdp", "-sdp has been removed, use sdp://file instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
|
{"sdp", "-sdp has been removed, use sdp://file instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
|
||||||
@ -469,13 +469,13 @@ const m_option_t common_opts[] = {
|
|||||||
#else
|
#else
|
||||||
{"rtsp-stream-over-sctp", "-rtsp-stream-over-sctp requires the \"libnemesi\" library\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
{"rtsp-stream-over-sctp", "-rtsp-stream-over-sctp requires the \"libnemesi\" library\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
||||||
#endif /* CONFIG_LIBNEMESI */
|
#endif /* CONFIG_LIBNEMESI */
|
||||||
#ifdef CONFIG_NETWORK
|
#ifdef CONFIG_NETWORKING
|
||||||
{"rtsp-port", &rtsp_port, CONF_TYPE_INT, CONF_RANGE, -1, 65535, NULL},
|
{"rtsp-port", &rtsp_port, CONF_TYPE_INT, CONF_RANGE, -1, 65535, NULL},
|
||||||
{"rtsp-destination", &rtsp_destination, CONF_TYPE_STRING, CONF_MIN, 0, 0, NULL},
|
{"rtsp-destination", &rtsp_destination, CONF_TYPE_STRING, CONF_MIN, 0, 0, NULL},
|
||||||
#else
|
#else
|
||||||
{"rtsp-port", "MPlayer was compiled without network support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
{"rtsp-port", "MPlayer was compiled without networking support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
||||||
{"rtsp-destination", "MPlayer was compiled without network support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
{"rtsp-destination", "MPlayer was compiled without networking support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
||||||
#endif /* CONFIG_NETWORK */
|
#endif /* CONFIG_NETWORKING */
|
||||||
|
|
||||||
// ------------------------- demuxer options --------------------
|
// ------------------------- demuxer options --------------------
|
||||||
|
|
||||||
|
38
configure
vendored
38
configure
vendored
@ -273,7 +273,7 @@ Optional features:
|
|||||||
--disable-tv-bsdbt848 disable BSD BT848 interface [autodetect]
|
--disable-tv-bsdbt848 disable BSD BT848 interface [autodetect]
|
||||||
--disable-pvr disable Video4Linux2 MPEG PVR [autodetect]
|
--disable-pvr disable Video4Linux2 MPEG PVR [autodetect]
|
||||||
--disable-rtc disable RTC (/dev/rtc) on Linux [autodetect]
|
--disable-rtc disable RTC (/dev/rtc) on Linux [autodetect]
|
||||||
--disable-network disable networking [enable]
|
--disable-networking disable networking [enable]
|
||||||
--enable-winsock2_h enable winsock2_h [autodetect]
|
--enable-winsock2_h enable winsock2_h [autodetect]
|
||||||
--enable-smb enable Samba (SMB) input [autodetect]
|
--enable-smb enable Samba (SMB) input [autodetect]
|
||||||
--enable-live enable LIVE555 Streaming Media [autodetect]
|
--enable-live enable LIVE555 Streaming Media [autodetect]
|
||||||
@ -653,7 +653,7 @@ _tv_v4l2=auto
|
|||||||
_tv_bsdbt848=auto
|
_tv_bsdbt848=auto
|
||||||
_tv_dshow=auto
|
_tv_dshow=auto
|
||||||
_pvr=auto
|
_pvr=auto
|
||||||
_network=yes
|
networking=yes
|
||||||
_winsock2_h=auto
|
_winsock2_h=auto
|
||||||
_smb=auto
|
_smb=auto
|
||||||
_vidix=auto
|
_vidix=auto
|
||||||
@ -1077,8 +1077,8 @@ for ac_option do
|
|||||||
--disable-pvr) _pvr=no ;;
|
--disable-pvr) _pvr=no ;;
|
||||||
--enable-fastmemcpy) _fastmemcpy=yes ;;
|
--enable-fastmemcpy) _fastmemcpy=yes ;;
|
||||||
--disable-fastmemcpy) _fastmemcpy=no ;;
|
--disable-fastmemcpy) _fastmemcpy=no ;;
|
||||||
--enable-network) _network=yes ;;
|
--enable-networking) networking=yes ;;
|
||||||
--disable-network) _network=no ;;
|
--disable-networking) networking=no ;;
|
||||||
--enable-winsock2_h) _winsock2_h=yes ;;
|
--enable-winsock2_h) _winsock2_h=yes ;;
|
||||||
--disable-winsock2_h) _winsock2_h=no ;;
|
--disable-winsock2_h) _winsock2_h=no ;;
|
||||||
--enable-smb) _smb=yes ;;
|
--enable-smb) _smb=yes ;;
|
||||||
@ -3119,19 +3119,21 @@ fi
|
|||||||
echores "$_closesocket"
|
echores "$_closesocket"
|
||||||
|
|
||||||
|
|
||||||
echocheck "network"
|
echocheck "networking"
|
||||||
test $_winsock2_h = no && test $inet_pton = no &&
|
test $_winsock2_h = no && test $inet_pton = no &&
|
||||||
test $inet_aton = no && _network=no
|
test $inet_aton = no && networking=no
|
||||||
if test "$_network" = yes ; then
|
if test "$networking" = yes ; then
|
||||||
def_network='#define CONFIG_NETWORK 1'
|
def_network='#define CONFIG_NETWORK 1'
|
||||||
|
def_networking='#define CONFIG_NETWORKING 1'
|
||||||
extra_ldflags="$extra_ldflags $_ld_sock"
|
extra_ldflags="$extra_ldflags $_ld_sock"
|
||||||
inputmodules="network $inputmodules"
|
inputmodules="networking $inputmodules"
|
||||||
else
|
else
|
||||||
noinputmodules="network $noinputmodules"
|
noinputmodules="networking $noinputmodules"
|
||||||
def_network='#undef CONFIG_NETWORK'
|
def_network='#undef CONFIG_NETWORK'
|
||||||
|
def_networking='#undef CONFIG_NETWORKING'
|
||||||
_ftp=no
|
_ftp=no
|
||||||
fi
|
fi
|
||||||
echores "$_network"
|
echores "$networking"
|
||||||
|
|
||||||
|
|
||||||
echocheck "inet6"
|
echocheck "inet6"
|
||||||
@ -5961,7 +5963,7 @@ fi
|
|||||||
echores "$_libcdio"
|
echores "$_libcdio"
|
||||||
|
|
||||||
if test "$_cdda" = yes ; then
|
if test "$_cdda" = yes ; then
|
||||||
test $_cddb = auto && test $_network = yes && _cddb=yes
|
test $_cddb = auto && test $networking = yes && _cddb=yes
|
||||||
def_cdparanoia='#define CONFIG_CDDA 1'
|
def_cdparanoia='#define CONFIG_CDDA 1'
|
||||||
inputmodules="cdda $inputmodules"
|
inputmodules="cdda $inputmodules"
|
||||||
else
|
else
|
||||||
@ -6770,7 +6772,7 @@ fi
|
|||||||
echores "$_qtx"
|
echores "$_qtx"
|
||||||
|
|
||||||
echocheck "Nemesi Streaming Media libraries"
|
echocheck "Nemesi Streaming Media libraries"
|
||||||
if test "$_nemesi" = auto && test "$_network" = yes ; then
|
if test "$_nemesi" = auto && test "$networking" = yes ; then
|
||||||
_nemesi=no
|
_nemesi=no
|
||||||
if $_pkg_config libnemesi --atleast-version=0.6.3 ; then
|
if $_pkg_config libnemesi --atleast-version=0.6.3 ; then
|
||||||
extra_cflags="$extra_cflags $($_pkg_config --cflags libnemesi)"
|
extra_cflags="$extra_cflags $($_pkg_config --cflags libnemesi)"
|
||||||
@ -6783,7 +6785,7 @@ if test "$_nemesi" = yes; then
|
|||||||
def_nemesi='#define CONFIG_LIBNEMESI 1'
|
def_nemesi='#define CONFIG_LIBNEMESI 1'
|
||||||
inputmodules="nemesi $inputmodules"
|
inputmodules="nemesi $inputmodules"
|
||||||
else
|
else
|
||||||
_native_rtsp="$_network"
|
_native_rtsp="$networking"
|
||||||
_nemesi=no
|
_nemesi=no
|
||||||
def_nemesi='#undef CONFIG_LIBNEMESI'
|
def_nemesi='#undef CONFIG_LIBNEMESI'
|
||||||
noinputmodules="nemesi $noinputmodules"
|
noinputmodules="nemesi $noinputmodules"
|
||||||
@ -6791,7 +6793,7 @@ fi
|
|||||||
echores "$_nemesi"
|
echores "$_nemesi"
|
||||||
|
|
||||||
echocheck "LIVE555 Streaming Media libraries"
|
echocheck "LIVE555 Streaming Media libraries"
|
||||||
if test "$_live" = auto && test "$_network" = yes ; then
|
if test "$_live" = auto && test "$networking" = yes ; then
|
||||||
cat > $TMPCPP << EOF
|
cat > $TMPCPP << EOF
|
||||||
#include <liveMedia.hh>
|
#include <liveMedia.hh>
|
||||||
#if (LIVEMEDIA_LIBRARY_VERSION_INT < 1141257600)
|
#if (LIVEMEDIA_LIBRARY_VERSION_INT < 1141257600)
|
||||||
@ -6822,11 +6824,11 @@ EOF
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if test "$_live" = yes && test "$_network" = yes; then
|
if test "$_live" = yes && test "$networking" = yes; then
|
||||||
test $_livelibdir && res_comment="using $_livelibdir"
|
test $_livelibdir && res_comment="using $_livelibdir"
|
||||||
def_live='#define CONFIG_LIVE555 1'
|
def_live='#define CONFIG_LIVE555 1'
|
||||||
inputmodules="live555 $inputmodules"
|
inputmodules="live555 $inputmodules"
|
||||||
elif test "$_live_dist" = yes && test "$_network" = yes; then
|
elif test "$_live_dist" = yes && test "$networking" = yes; then
|
||||||
res_comment="using distribution version"
|
res_comment="using distribution version"
|
||||||
_live="yes"
|
_live="yes"
|
||||||
def_live='#define CONFIG_LIVE555 1'
|
def_live='#define CONFIG_LIVE555 1'
|
||||||
@ -7876,7 +7878,7 @@ MPG123 = $_mpg123
|
|||||||
MUSEPACK = $_musepack
|
MUSEPACK = $_musepack
|
||||||
NAS = $_nas
|
NAS = $_nas
|
||||||
NATIVE_RTSP = $_native_rtsp
|
NATIVE_RTSP = $_native_rtsp
|
||||||
NETWORK = $_network
|
NETWORKING = $networking
|
||||||
OPENAL = $_openal
|
OPENAL = $_openal
|
||||||
OSS = $_ossaudio
|
OSS = $_ossaudio
|
||||||
PE_EXECUTABLE = $_pe_executable
|
PE_EXECUTABLE = $_pe_executable
|
||||||
@ -8286,7 +8288,7 @@ $def_inet_aton
|
|||||||
$def_inet_pton
|
$def_inet_pton
|
||||||
$def_live
|
$def_live
|
||||||
$def_nemesi
|
$def_nemesi
|
||||||
$def_network
|
$def_networking
|
||||||
$def_smb
|
$def_smb
|
||||||
$def_socklen_t
|
$def_socklen_t
|
||||||
$def_vstream
|
$def_vstream
|
||||||
|
@ -661,7 +661,7 @@ if(streams) {
|
|||||||
// as the servers often do not care about what we requested.
|
// as the servers often do not care about what we requested.
|
||||||
#if 0
|
#if 0
|
||||||
uint32_t vr = 0, ar = 0,i;
|
uint32_t vr = 0, ar = 0,i;
|
||||||
#ifdef CONFIG_NETWORK
|
#ifdef CONFIG_NETWORKING
|
||||||
if( demuxer->stream->streaming_ctrl!=NULL ) {
|
if( demuxer->stream->streaming_ctrl!=NULL ) {
|
||||||
if( demuxer->stream->streaming_ctrl->bandwidth!=0 && demuxer->stream->streaming_ctrl->data!=NULL ) {
|
if( demuxer->stream->streaming_ctrl->bandwidth!=0 && demuxer->stream->streaming_ctrl->data!=NULL ) {
|
||||||
best_audio = ((asf_http_streaming_ctrl_t*)demuxer->stream->streaming_ctrl->data)->audio_id;
|
best_audio = ((asf_http_streaming_ctrl_t*)demuxer->stream->streaming_ctrl->data)->audio_id;
|
||||||
|
@ -91,7 +91,7 @@ static const stream_info_t* const auto_open_streams[] = {
|
|||||||
#ifdef CONFIG_CDDA
|
#ifdef CONFIG_CDDA
|
||||||
&stream_info_cdda,
|
&stream_info_cdda,
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_NETWORK
|
#ifdef CONFIG_NETWORKING
|
||||||
&stream_info_netstream,
|
&stream_info_netstream,
|
||||||
&stream_info_http1,
|
&stream_info_http1,
|
||||||
&stream_info_asf,
|
&stream_info_asf,
|
||||||
@ -176,7 +176,7 @@ static stream_t *open_stream_plugin(const stream_info_t *sinfo,
|
|||||||
s->flags |= mode;
|
s->flags |= mode;
|
||||||
*ret = sinfo->open(s,mode,arg,file_format);
|
*ret = sinfo->open(s,mode,arg,file_format);
|
||||||
if((*ret) != STREAM_OK) {
|
if((*ret) != STREAM_OK) {
|
||||||
#ifdef CONFIG_NETWORK
|
#ifdef CONFIG_NETWORKING
|
||||||
if (*ret == STREAM_REDIRECTED && redirected_url) {
|
if (*ret == STREAM_REDIRECTED && redirected_url) {
|
||||||
if (s->streaming_ctrl && s->streaming_ctrl->url
|
if (s->streaming_ctrl && s->streaming_ctrl->url
|
||||||
&& s->streaming_ctrl->url->url)
|
&& s->streaming_ctrl->url->url)
|
||||||
@ -270,7 +270,7 @@ int stream_fill_buffer(stream_t *s){
|
|||||||
// we will retry even if we already reached EOF previously.
|
// we will retry even if we already reached EOF previously.
|
||||||
switch(s->type){
|
switch(s->type){
|
||||||
case STREAMTYPE_STREAM:
|
case STREAMTYPE_STREAM:
|
||||||
#ifdef CONFIG_NETWORK
|
#ifdef CONFIG_NETWORKING
|
||||||
if( s->streaming_ctrl!=NULL && s->streaming_ctrl->streaming_read ) {
|
if( s->streaming_ctrl!=NULL && s->streaming_ctrl->streaming_read ) {
|
||||||
len=s->streaming_ctrl->streaming_read(s->fd,s->buffer,STREAM_BUFFER_SIZE, s->streaming_ctrl);
|
len=s->streaming_ctrl->streaming_read(s->fd,s->buffer,STREAM_BUFFER_SIZE, s->streaming_ctrl);
|
||||||
} else
|
} else
|
||||||
@ -341,7 +341,7 @@ if(newpos==0 || newpos!=s->pos){
|
|||||||
// Some streaming protocol allow to seek backward and forward
|
// Some streaming protocol allow to seek backward and forward
|
||||||
// A function call that return -1 can tell that the protocol
|
// A function call that return -1 can tell that the protocol
|
||||||
// doesn't support seeking.
|
// doesn't support seeking.
|
||||||
#ifdef CONFIG_NETWORK
|
#ifdef CONFIG_NETWORKING
|
||||||
if(s->seek) { // new stream seek is much cleaner than streaming_ctrl one
|
if(s->seek) { // new stream seek is much cleaner than streaming_ctrl one
|
||||||
if(!s->seek(s,newpos)) {
|
if(!s->seek(s,newpos)) {
|
||||||
mp_msg(MSGT_STREAM,MSGL_ERR, "Seek failed\n");
|
mp_msg(MSGT_STREAM,MSGL_ERR, "Seek failed\n");
|
||||||
|
@ -163,13 +163,13 @@ typedef struct stream {
|
|||||||
char* url; // strdup() of filename/url
|
char* url; // strdup() of filename/url
|
||||||
char *lavf_type; // name of expected demuxer type for lavf
|
char *lavf_type; // name of expected demuxer type for lavf
|
||||||
struct MPOpts *opts;
|
struct MPOpts *opts;
|
||||||
#ifdef CONFIG_NETWORK
|
#ifdef CONFIG_NETWORKING
|
||||||
streaming_ctrl_t *streaming_ctrl;
|
streaming_ctrl_t *streaming_ctrl;
|
||||||
#endif
|
#endif
|
||||||
unsigned char buffer[STREAM_BUFFER_SIZE>VCD_SECTOR_SIZE?STREAM_BUFFER_SIZE:VCD_SECTOR_SIZE];
|
unsigned char buffer[STREAM_BUFFER_SIZE>VCD_SECTOR_SIZE?STREAM_BUFFER_SIZE:VCD_SECTOR_SIZE];
|
||||||
} stream_t;
|
} stream_t;
|
||||||
|
|
||||||
#ifdef CONFIG_NETWORK
|
#ifdef CONFIG_NETWORKING
|
||||||
#include "network.h"
|
#include "network.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user