introduce new 'stream' directory for all stream layer related components and split...
authorben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>
Mon, 31 Jul 2006 17:39:17 +0000 (17:39 +0000)
committerben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>
Mon, 31 Jul 2006 17:39:17 +0000 (17:39 +0000)
git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@19277 b3059339-0415-0410-9bf9-f77b7e298cf2

111 files changed:
Copyright
Gui/mplayer/common.c
Gui/mplayer/gtk/fs.c
Gui/mplayer/gtk/menu.c
Gui/mplayer/mw.c
Gui/mplayer/pb.c
Gui/mplayer/play.c
Gui/win32/dialogs.c
Gui/win32/gui.c
Gui/win32/interface.c
Makefile
TOOLS/Makefile
TOOLS/netstream/Makefile
TOOLS/netstream/netstream.c
asxparser.c
cfg-common.h
libmenu/menu.c
libmenu/menu_dvbin.c
libmpcodecs/Makefile
libmpdemux/Makefile
m_option.c
mencoder.c
mplayer.c
osdep/macosx_finder_args.c
playtreeparser.c
stream/Makefile [new file with mode: 0644]
stream/ai_alsa.c [moved from libmpdemux/ai_alsa.c with 100% similarity]
stream/ai_alsa1x.c [moved from libmpdemux/ai_alsa1x.c with 100% similarity]
stream/ai_oss.c [moved from libmpdemux/ai_oss.c with 100% similarity]
stream/asf_mmst_streaming.c [moved from libmpdemux/asf_mmst_streaming.c with 100% similarity]
stream/asf_streaming.c [moved from libmpdemux/asf_streaming.c with 100% similarity]
stream/audio_in.c [moved from libmpdemux/audio_in.c with 100% similarity]
stream/audio_in.h [moved from libmpdemux/audio_in.h with 100% similarity]
stream/cache2.c [moved from libmpdemux/cache2.c with 100% similarity]
stream/cdd.h [moved from libmpdemux/cdd.h with 100% similarity]
stream/cdda.c [moved from libmpdemux/cdda.c with 100% similarity]
stream/cddb.c [moved from libmpdemux/cddb.c with 100% similarity]
stream/cdinfo.c [moved from libmpdemux/cdinfo.c with 100% similarity]
stream/cookies.c [moved from libmpdemux/cookies.c with 100% similarity]
stream/cookies.h [moved from libmpdemux/cookies.h with 100% similarity]
stream/cue_read.c [moved from libmpdemux/cue_read.c with 100% similarity]
stream/cue_read.h [moved from libmpdemux/cue_read.h with 100% similarity]
stream/dvb_tune.c [moved from libmpdemux/dvb_tune.c with 100% similarity]
stream/dvbin.c [moved from libmpdemux/dvbin.c with 100% similarity]
stream/dvbin.h [moved from libmpdemux/dvbin.h with 100% similarity]
stream/dvdnav_stream.c [moved from libmpdemux/dvdnav_stream.c with 100% similarity]
stream/dvdnav_stream.h [moved from libmpdemux/dvdnav_stream.h with 100% similarity]
stream/freesdp/common.c [moved from libmpdemux/freesdp/common.c with 100% similarity]
stream/freesdp/common.h [moved from libmpdemux/freesdp/common.h with 100% similarity]
stream/freesdp/errorlist.c [moved from libmpdemux/freesdp/errorlist.c with 100% similarity]
stream/freesdp/parser.c [moved from libmpdemux/freesdp/parser.c with 100% similarity]
stream/freesdp/parser.h [moved from libmpdemux/freesdp/parser.h with 100% similarity]
stream/freesdp/parserpriv.h [moved from libmpdemux/freesdp/parserpriv.h with 100% similarity]
stream/freesdp/priv.h [moved from libmpdemux/freesdp/priv.h with 100% similarity]
stream/frequencies.c [moved from libmpdemux/frequencies.c with 100% similarity]
stream/frequencies.h [moved from libmpdemux/frequencies.h with 100% similarity]
stream/http.c [moved from libmpdemux/http.c with 100% similarity]
stream/http.h [moved from libmpdemux/http.h with 100% similarity]
stream/librtsp/rtsp.c [moved from libmpdemux/librtsp/rtsp.c with 100% similarity]
stream/librtsp/rtsp.h [moved from libmpdemux/librtsp/rtsp.h with 100% similarity]
stream/librtsp/rtsp_rtp.c [moved from libmpdemux/librtsp/rtsp_rtp.c with 100% similarity]
stream/librtsp/rtsp_rtp.h [moved from libmpdemux/librtsp/rtsp_rtp.h with 100% similarity]
stream/librtsp/rtsp_session.c [moved from libmpdemux/librtsp/rtsp_session.c with 100% similarity]
stream/librtsp/rtsp_session.h [moved from libmpdemux/librtsp/rtsp_session.h with 100% similarity]
stream/mf.c [moved from libmpdemux/mf.c with 100% similarity]
stream/mf.h [moved from libmpdemux/mf.h with 100% similarity]
stream/netstream.h [moved from libmpdemux/netstream.h with 100% similarity]
stream/network.c [moved from libmpdemux/network.c with 100% similarity]
stream/network.h [moved from libmpdemux/network.h with 100% similarity]
stream/open.c [moved from libmpdemux/open.c with 100% similarity]
stream/pnm.c [moved from libmpdemux/pnm.c with 100% similarity]
stream/realrtsp/asmrp.c [moved from libmpdemux/realrtsp/asmrp.c with 100% similarity]
stream/realrtsp/asmrp.h [moved from libmpdemux/realrtsp/asmrp.h with 100% similarity]
stream/realrtsp/real.c [moved from libmpdemux/realrtsp/real.c with 100% similarity]
stream/realrtsp/real.h [moved from libmpdemux/realrtsp/real.h with 100% similarity]
stream/realrtsp/rmff.c [moved from libmpdemux/realrtsp/rmff.c with 100% similarity]
stream/realrtsp/rmff.h [moved from libmpdemux/realrtsp/rmff.h with 100% similarity]
stream/realrtsp/sdpplin.c [moved from libmpdemux/realrtsp/sdpplin.c with 100% similarity]
stream/realrtsp/sdpplin.h [moved from libmpdemux/realrtsp/sdpplin.h with 100% similarity]
stream/realrtsp/xbuffer.c [moved from libmpdemux/realrtsp/xbuffer.c with 100% similarity]
stream/realrtsp/xbuffer.h [moved from libmpdemux/realrtsp/xbuffer.h with 100% similarity]
stream/rtp.c [moved from libmpdemux/rtp.c with 100% similarity]
stream/rtp.h [moved from libmpdemux/rtp.h with 100% similarity]
stream/stream.c [moved from libmpdemux/stream.c with 100% similarity]
stream/stream.h [moved from libmpdemux/stream.h with 100% similarity]
stream/stream_dvd.c [moved from libmpdemux/stream_dvd.c with 100% similarity]
stream/stream_dvd.h [moved from libmpdemux/stream_dvd.h with 100% similarity]
stream/stream_file.c [moved from libmpdemux/stream_file.c with 100% similarity]
stream/stream_ftp.c [moved from libmpdemux/stream_ftp.c with 100% similarity]
stream/stream_livedotcom.c [moved from libmpdemux/stream_livedotcom.c with 100% similarity]
stream/stream_netstream.c [moved from libmpdemux/stream_netstream.c with 100% similarity]
stream/stream_null.c [moved from libmpdemux/stream_null.c with 100% similarity]
stream/stream_pvr.c [moved from libmpdemux/stream_pvr.c with 100% similarity]
stream/stream_rtsp.c [moved from libmpdemux/stream_rtsp.c with 100% similarity]
stream/stream_smb.c [moved from libmpdemux/stream_smb.c with 100% similarity]
stream/stream_vcd.c [moved from libmpdemux/stream_vcd.c with 100% similarity]
stream/stream_vstream.c [moved from libmpdemux/stream_vstream.c with 100% similarity]
stream/tv.c [moved from libmpdemux/tv.c with 100% similarity]
stream/tv.h [moved from libmpdemux/tv.h with 100% similarity]
stream/tvi_bsdbt848.c [moved from libmpdemux/tvi_bsdbt848.c with 100% similarity]
stream/tvi_def.h [moved from libmpdemux/tvi_def.h with 100% similarity]
stream/tvi_dummy.c [moved from libmpdemux/tvi_dummy.c with 100% similarity]
stream/tvi_v4l.c [moved from libmpdemux/tvi_v4l.c with 100% similarity]
stream/tvi_v4l2.c [moved from libmpdemux/tvi_v4l2.c with 100% similarity]
stream/url.c [moved from libmpdemux/url.c with 100% similarity]
stream/url.h [moved from libmpdemux/url.h with 100% similarity]
stream/vcd_read.h [moved from libmpdemux/vcd_read.h with 100% similarity]
stream/vcd_read_darwin.h [moved from libmpdemux/vcd_read_darwin.h with 100% similarity]
stream/vcd_read_fbsd.h [moved from libmpdemux/vcd_read_fbsd.h with 100% similarity]
stream/vcd_read_nbsd.h [moved from libmpdemux/vcd_read_nbsd.h with 100% similarity]
subreader.c

index 6329d05..cef4891 100644 (file)
--- a/Copyright
+++ b/Copyright
@@ -71,13 +71,13 @@ License:    GNU General Public License
 Name:       dvbstream
 Version:    0.4.3-pre3 (cvs checkout)
 Homepage:   http://www.linuxstb.org/dvbstream/
-Directory:  libmpdemux
+Directory:  stream
 License:    GNU General Public License
 
 Name:       realrtsp
 Version:    xine CVS 2003/04/17 + patches
 Homepage:   http://www.xinehq.de
-Directory:  libmpdemux/realrtsp/
+Directory:  stream/realrtsp/
 License:    GNU General Public License
 
 Name:       id3edit
@@ -107,5 +107,5 @@ License:    GNU Lesser General Public License
 Name:       FreeSDP
 Version:    0.4.1
 Homepage:   https://savannah.nongnu.org/projects/freesdp/
-Directory:  libmpdemux/freesdp/
+Directory:  stream/freesdp/
 License:    GNU General Public License
index 08ae701..40bbc3f 100644 (file)
@@ -17,7 +17,7 @@
 #include "../libvo/x11_common.h"
 #include "../libvo/fastmemcpy.h"
 
-#include "../libmpdemux/stream.h"
+#include "../stream/stream.h"
 #include "../mixer.h"
 #include "../libvo/sub.h"
 #include "../mplayer.h"
index e84efad..1756881 100644 (file)
@@ -16,7 +16,7 @@
 #include "../interface.h"
 #include "../../config.h"
 #include "../../help_mp.h"
-#include "../../libmpdemux/stream.h"
+#include "../../stream/stream.h"
 
 #include "../widgets.h"
 #include "fs.h"
index 35d2883..caf23f9 100644 (file)
@@ -14,7 +14,7 @@
 #include "../widgets.h"
 #include "app.h"
 
-#include "../../libmpdemux/stream.h"
+#include "../../stream/stream.h"
 #include "../../libmpdemux/demuxer.h"
 
 #include "../pixmaps/ab.xpm"
index 0d4416e..3ac3844 100644 (file)
@@ -17,7 +17,7 @@
 #include "../libvo/x11_common.h"
 #include "../libvo/fastmemcpy.h"
 
-#include "../libmpdemux/stream.h"
+#include "../stream/stream.h"
 #include "../mixer.h"
 #include "../libvo/sub.h"
 #include "../mplayer.h"
index f8cad1c..01c0013 100644 (file)
@@ -17,7 +17,7 @@
 #include "../libvo/x11_common.h"
 #include "../libvo/fastmemcpy.h"
 
-#include "../libmpdemux/stream.h"
+#include "../stream/stream.h"
 #include "../mixer.h"
 #include "../libvo/sub.h"
 #include "../mplayer.h"
index 1b35b04..c20aae3 100644 (file)
@@ -28,7 +28,7 @@
 #include "skin/skin.h"
 #include "skin/font.h"
 
-#include "libmpdemux/stream.h"
+#include "stream/stream.h"
 
 extern float rel_seek_secs;
 extern int abs_seek_pos;
index 1ff04f3..59f45a5 100644 (file)
@@ -24,7 +24,7 @@
 #include <interface.h>
 #include <mp_msg.h>
 #include <help_mp.h>
-#include <libmpdemux/stream.h>
+#include <stream/stream.h>
 #include <libmpdemux/demuxer.h>
 #include <libmpdemux/stheader.h>
 #include "gui.h"
index 57e7c9a..a149970 100644 (file)
@@ -34,7 +34,7 @@
 #include <input/input.h>
 #include <input/mouse.h>
 #include <osdep/keycodes.h>
-#include <libmpdemux/stream.h>
+#include <stream/stream.h>
 #include <libvo/video_out.h>
 #include <interface.h>
 #include "gui.h"
index 44eee7d..61c2546 100644 (file)
 #include <mp_msg.h>
 #include <help_mp.h>
 #include <codec-cfg.h>
-#include <libmpdemux/stream.h>
+#include <stream/stream.h>
 #include <libmpdemux/demuxer.h>
 #include <libmpdemux/stheader.h>
 #ifdef USE_DVDREAD
-#include <libmpdemux/stream_dvd.h>
+#include <stream/stream_dvd.h>
 #endif
 #include <input/input.h>
 #include <libvo/video_out.h>
index 45786f1..b6e7167 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -105,6 +105,7 @@ COMMON_LIBS = libmpcodecs/libmpcodecs.a \
               $(W32_LIB) \
               libaf/libaf.a \
               libmpdemux/libmpdemux.a \
+              stream/stream.a \
               libswscale/libswscale.a \
               osdep/libosdep.a \
               $(DVDREAD_LIB) \
@@ -139,6 +140,7 @@ CODEC_LIBS += $(FAAC_LIB)
 endif
 
 PARTS = libmpdemux \
+        stream \
         libmpcodecs \
         libavutil \
         libavcodec \
@@ -195,6 +197,7 @@ endif
 COMMON_DEPS = $(W32_DEP) \
               $(AV_DEP) \
               libmpdemux/libmpdemux.a \
+              stream/stream.a \
               libmpcodecs/libmpcodecs.a \
               libao2/libao2.a \
               osdep/libosdep.a \
@@ -274,6 +277,9 @@ libass/libass.a:
 libmpdemux/libmpdemux.a:
        $(MAKE) -C libmpdemux
 
+stream/stream.a:
+       $(MAKE) -C stream
+
 libmpcodecs/libmpcodecs.a:
        $(MAKE) -C libmpcodecs
 
@@ -546,6 +552,7 @@ libaf/libaf.a: $(wildcard libaf/*.[ch])
 libmpdvdkit2/libmpdvdkit.a: $(wildcard libmpdvdkit2/*.[ch])
 
 libmpdemux/libmpdemux.a: $(wildcard libmpdemux/*.[ch] libmpdemux/*/*.[ch])
+stream/stream.a: $(wildcard stream/*.[ch] stream/*/*.[ch])
 libmpcodecs/libmpcodecs.a: $(wildcard libmpcodecs/*.[ch]) $(wildcard libmpcodecs/native/*.[ch])
 libmpcodecs/libmpencoders.a: $(wildcard libmpcodecs/*.[ch])
 
index 817fe33..0433525 100644 (file)
@@ -31,7 +31,7 @@ subrip: subrip.c
           ../libswscale/yuv2rgb.o ../libmpcodecs/img_format.o -lm
 
 vivodump: vivodump.c
-       $(CC) $(CFLAGS) -o $@ $< ../mp_msg.o ../libmpdemux/libmpdemux.a
+       $(CC) $(CFLAGS) -o $@ $< ../mp_msg.o ../libmpdemux/libmpdemux.a ../stream/stream.a
 
 fastmemcpybench: fastmemcpybench.c
        $(CC) $(CFLAGS) -g $< -o fastmem-mmx  ../libvo/aclib.o -DNAME=\"mmx\"      -DHAVE_MMX
index e07505d..1f5173c 100644 (file)
@@ -19,6 +19,7 @@ all: netstream
 # FIXME: linking is a mess that should be fixed properly some day
 # it does not work with either GUI, live.com or libavformat enabled
 DEPS = $(MPROOT)/libmpdemux/libmpdemux.a \
+       $(MPROOT)/stream/stream.a \
        $(MPROOT)/libmpdvdkit2/libmpdvdkit.a \
        $(MPROOT)/libmpcodecs/native/minilzo.o \
        $(MPROOT)/libvo/aclib.o \
@@ -45,7 +46,7 @@ ifeq ($(TARGET_WIN32),yes)
 DEPS += $(MPROOT)/osdep/glob-win.o $(WIN32_LIB) -lwsock32
 endif
 
-netstream: $(MPROOT)/libmpdemux/libmpdemux.a netstream.o
+netstream: $(MPROOT)/libmpdemux/libmpdemux.a $(MPROOT)/libmpdemux/stream.a netstream.o
 
        $(CC) $(CFLAGS) netstream.o -o netstream $(DEPS)
 
index 73a0bec..0f8b698 100644 (file)
 #include <ws2tcpip.h>
 #endif
 
-#include <libmpdemux/stream.h>
+#include <stream/stream.h>
 #include <libmpdemux/demuxer.h>
 #include <mp_msg.h>
 #include <bswap.h>
 
 /// Netstream packets def and some helpers
-#include <libmpdemux/netstream.h>
+#include <stream/netstream.h>
 
 
 //Set some standard variables
index 1bd8047..4b02aeb 100644 (file)
@@ -8,7 +8,7 @@
 
 #include "playtree.h"
 #include "playtreeparser.h"
-#include "libmpdemux/stream.h"
+#include "stream/stream.h"
 #include "libmpdemux/demuxer.h"
 #include "asxparser.h"
 #include "mp_msg.h"
index f27698b..35b804e 100644 (file)
@@ -366,7 +366,7 @@ extern int ts_prog;
 extern int ts_keep_broken;
 extern off_t ts_probe;
 
-#include "libmpdemux/tv.h"
+#include "stream/tv.h"
 
 extern char* edl_filename;
 extern char* edl_output_filename;
@@ -444,7 +444,7 @@ m_option_t pvropts_conf[]={
 #endif
 
 #ifdef HAS_DVBIN_SUPPORT
-#include "libmpdemux/dvbin.h"
+#include "stream/dvbin.h"
 extern m_config_t dvbin_opts_conf[];
 #endif
 
index 6798ca7..247faf8 100644 (file)
@@ -13,7 +13,7 @@
 #include "libvo/font_load.h"
 #include "osdep/keycodes.h"
 #include "asxparser.h"
-#include "libmpdemux/stream.h"
+#include "stream/stream.h"
 
 #include "img_format.h"
 #include "mp_image.h"
index 6450a8d..f3525f2 100644 (file)
@@ -24,7 +24,7 @@
 #include "input/input.h"
 #include "osdep/keycodes.h"
 
-#include "libmpdemux/dvbin.h"
+#include "stream/dvbin.h"
 
 
 
index 7c9a53a..1b0dc07 100644 (file)
@@ -321,6 +321,7 @@ CFLAGS  = $(OPTFLAGS) \
           -I. -I.. \
           -Inative \
           -I../libmpdemux \
+          -I../stream \
           -I../loader \
           $(LIBAV_INC) \
           -D_GNU_SOURCE \
index 5340f9b..97c59aa 100644 (file)
@@ -12,89 +12,15 @@ SRCS  = mp3_hdr.c \
 
 # Core
 SRCS += extension.c \
-        mf.c \
-        open.c \
-        url.c \
         video.c \
 
-ifeq ($(STREAM_CACHE),yes)
-SRCS += cache2.c
-endif
-
 # Miscellaneous
-SRCS += cdinfo.c \
-        cue_read.c \
-        parse_es.c \
+SRCS += parse_es.c \
         parse_mp4.c \
         mpeg_packetizer.c \
         yuv4mpeg.c \
         yuv4mpeg_ratio.c \
 
-ifeq ($(CDDA),yes)
-SRCS += cdda.c
-  ifeq ($(MPLAYER_NETWORK),yes)
-  SRCS += cddb.c
-  endif
-endif
-
-# Stream readers/writers
-SRCS += stream.c \
-        stream_file.c \
-        stream_null.c \
-
-ifeq ($(HAVE_DVD),yes)
-SRCS += stream_dvd.c
-endif
-ifeq ($(DVDNAV),yes)
-SRCS += dvdnav_stream.c
-endif
-ifeq ($(VCD),yes)
-SRCS += stream_vcd.c
-endif
-ifeq ($(FTP),yes)
-SRCS += stream_ftp.c
-endif
-ifeq ($(LIBSMBCLIENT),yes)
-SRCS += stream_smb.c
-endif
-ifeq ($(MPLAYER_NETWORK),yes)
-  SRCS += stream_netstream.c
-  ifeq ($(STREAMING_LIVE555),yes)
-  SRCS += stream_livedotcom.c
-  endif
-endif
-ifeq ($(VSTREAM),yes)
-SRCS += stream_vstream.c
-endif
-
-# TV in
-ifeq ($(TV),yes)
-SRCS += tv.c frequencies.c tvi_dummy.c
-  ifeq ($(TV_BSDBT848),yes)
-  SRCS += tvi_bsdbt848.c
-  endif
-  ifeq ($(TV_V4L2),yes)
-  SRCS += tvi_v4l2.c audio_in.c
-    ifeq ($(PVR),yes)
-    SRCS += stream_pvr.c
-    endif
-  endif
-  ifeq ($(TV_V4L1),yes)
-  SRCS += tvi_v4l.c audio_in.c
-  endif
-  ifeq ($(TV_V4L),yes)
-    ifeq ($(ALSA1X),yes)
-     SRCS += ai_alsa1x.c
-    endif
-    ifeq ($(ALSA9),yes)
-     SRCS += ai_alsa.c
-    endif
-    ifeq ($(OSS),yes)
-     SRCS += ai_oss.c
-    endif
-  endif
-endif
-
 # Demuxers
 SRCS += demuxer.c \
         demux_aac.c \
@@ -166,48 +92,18 @@ SRCS   += demux_lavf.c
 MUXERS += muxer_lavf.c
 endif
 
-ifeq ($(MPLAYER_NETWORK),yes)
-SRCS += asf_streaming.c \
-        http.c \
-        network.c \
-        cookies.c \
-        asf_mmst_streaming.c \
-        pnm.c \
-        rtp.c \
-        stream_rtsp.c \
-
-SRCS += realrtsp/asmrp.c \
-        realrtsp/real.c \
-        realrtsp/rmff.c \
-        realrtsp/sdpplin.c \
-        realrtsp/xbuffer.c \
-
-SRCS += librtsp/rtsp.c \
-        librtsp/rtsp_rtp.c \
-        librtsp/rtsp_session.c \
-
-SRCS += freesdp/common.c \
-        freesdp/errorlist.c \
-        freesdp/parser.c \
+ifeq ($(MENCODER),yes)
+SRCS += $(MUXERS)
+endif
 
 ifeq ($(STREAMING_LIVE555),yes)
 CPLUSPLUSSRCS = demux_rtp.cpp demux_rtp_codec.cpp
 CPLUSPLUSINCLUDE = $(LIVE_INCLUDES)
 endif
-endif
-
-ifeq ($(DVBIN),yes)
-SRCS += dvbin.c
-SRCS += dvb_tune.c
-endif
-
-ifeq ($(MENCODER),yes)
-SRCS += $(MUXERS)
-endif
 
 OBJS   = $(SRCS:.c=.o)
 OBJS   += $(CPLUSPLUSSRCS:.cpp=.o)
-INCLUDE = -I.. -I../loader $(LIBAV_INC)
+INCLUDE = -I.. -I../stream -I../loader $(LIBAV_INC)
 CFLAGS  = $(OPTFLAGS) $(INCLUDE) $(XMMS_CFLAGS)
 CPLUSPLUSFLAGS  = $(CFLAGS) $(CPLUSPLUSINCLUDE) -D__STDC_LIMIT_MACROS
 CPLUSPLUS = $(CC)
@@ -229,16 +125,14 @@ $(LIBNAME):       $(OBJS)
 
 test:  $(LIBNAME) test.c
        $(CC) $(CFLAGS) test.c ../mp_msg.c ../osdep/shmem.c -o test \
-         ./libmpdemux.a ../libmpdvdkit2/libmpdvdkit.a ../libvo/aclib.o \
+         ./libmpdemux.a ../stream/stream.a \
+         ../libmpdvdkit2/libmpdvdkit.a ../libvo/aclib.o \
          ../libmpcodecs/img_format.o ../libao2/afmt.o ../sub_cc.o \
          ../m_option.o ../subreader.o \
          $(ALSA_LIB) $(VORBIS_LIB) $(CDPARANOIA_LIB) -lz -lpthread
 
 clean:
-       rm -f *.o *.a *~ \
-       realrtsp/*.o realrtsp/*.a realrtsp/*~ \
-       librtsp/*.o librtsp/*.a librtsp/*~ \
-       freesdp/*.o freesdp/*.a freesdp/*~
+       rm -f *.o *.a *~
 
 distclean: clean
        rm -f .depend test
index 6ed3b57..64c3b71 100644 (file)
@@ -15,7 +15,7 @@
 #include "m_option.h"
 //#include "m_config.h"
 #include "mp_msg.h"
-#include "libmpdemux/url.h"
+#include "stream/url.h"
 
 // Don't free for 'production' atm
 #ifndef MP_DEBUG
index e7d9637..9441034 100644 (file)
@@ -48,7 +48,7 @@
 #include "m_config.h"
 #include "parser-mecmd.h"
 
-#include "libmpdemux/stream.h"
+#include "stream/stream.h"
 #include "libmpdemux/demuxer.h"
 #include "libmpdemux/stheader.h"
 #include "libmpdemux/mp3_hdr.h"
@@ -76,7 +76,7 @@
 #include "get_path.c"
 
 #ifdef USE_DVDREAD
-#include "libmpdemux/stream_dvd.h"
+#include "stream/stream_dvd.h"
 #endif
 
 #ifdef USE_LIBAVCODEC
index b7c0032..8b695a5 100644 (file)
--- a/mplayer.c
+++ b/mplayer.c
@@ -106,11 +106,11 @@ char * proc_priority=NULL;
 #endif /* HAVE_RTC */
 
 #ifdef USE_TV
-#include "libmpdemux/tv.h"
+#include "stream/tv.h"
 #endif
 
 #ifdef HAS_DVBIN_SUPPORT
-#include "libmpdemux/dvbin.h"
+#include "stream/dvbin.h"
 static int last_dvb_step = 1;
 static int dvbin_reopen = 0;
 extern void cache_uninit(stream_t *s);
@@ -175,14 +175,14 @@ void xscreensaver_heartbeat(void);
 
 static int max_framesize=0;
 
-#include "libmpdemux/stream.h"
+#include "stream/stream.h"
 #include "libmpdemux/demuxer.h"
 #include "libmpdemux/stheader.h"
 //#include "parse_es.h"
 #include "libmpdemux/matroska.h"
 
 #ifdef USE_DVDREAD
-#include "libmpdemux/stream_dvd.h"
+#include "stream/stream_dvd.h"
 #endif
 
 #include "libmpcodecs/dec_audio.h"
index 16d9530..7312969 100644 (file)
@@ -1,6 +1,6 @@
 #include <Carbon/Carbon.h>
 #include <ApplicationServices/ApplicationServices.h>
-#include "libmpdemux/url.h"
+#include "stream/url.h"
 #include "mp_msg.h"
 #include "m_option.h"
 #include "m_config.h"
index a56bdbf..3beae04 100644 (file)
@@ -18,7 +18,7 @@
 #include "m_config.h"
 #include "playtree.h"
 #include "playtreeparser.h"
-#include "libmpdemux/stream.h"
+#include "stream/stream.h"
 #include "libmpdemux/demuxer.h"
 #include "mp_msg.h"
 
diff --git a/stream/Makefile b/stream/Makefile
new file mode 100644 (file)
index 0000000..5815c3b
--- /dev/null
@@ -0,0 +1,151 @@
+
+LIBNAME = stream.a
+
+include ../config.mak
+
+# Core
+SRCS += mf.c \
+        open.c \
+        url.c \
+
+ifeq ($(STREAM_CACHE),yes)
+SRCS += cache2.c
+endif
+
+# Miscellaneous
+SRCS += cdinfo.c \
+        cue_read.c \
+
+ifeq ($(CDDA),yes)
+SRCS += cdda.c
+  ifeq ($(MPLAYER_NETWORK),yes)
+  SRCS += cddb.c
+  endif
+endif
+
+# Stream readers/writers
+SRCS += stream.c \
+        stream_file.c \
+        stream_null.c \
+
+ifeq ($(HAVE_DVD),yes)
+SRCS += stream_dvd.c
+endif
+ifeq ($(DVDNAV),yes)
+SRCS += dvdnav_stream.c
+endif
+ifeq ($(VCD),yes)
+SRCS += stream_vcd.c
+endif
+ifeq ($(FTP),yes)
+SRCS += stream_ftp.c
+endif
+ifeq ($(LIBSMBCLIENT),yes)
+SRCS += stream_smb.c
+endif
+ifeq ($(MPLAYER_NETWORK),yes)
+  SRCS += stream_netstream.c
+  ifeq ($(STREAMING_LIVE555),yes)
+  SRCS += stream_livedotcom.c
+  endif
+endif
+ifeq ($(VSTREAM),yes)
+SRCS += stream_vstream.c
+endif
+
+# TV in
+ifeq ($(TV),yes)
+SRCS += tv.c frequencies.c tvi_dummy.c
+  ifeq ($(TV_BSDBT848),yes)
+  SRCS += tvi_bsdbt848.c
+  endif
+  ifeq ($(TV_V4L2),yes)
+  SRCS += tvi_v4l2.c audio_in.c
+    ifeq ($(PVR),yes)
+    SRCS += stream_pvr.c
+    endif
+  endif
+  ifeq ($(TV_V4L1),yes)
+  SRCS += tvi_v4l.c audio_in.c
+  endif
+  ifeq ($(TV_V4L),yes)
+    ifeq ($(ALSA1X),yes)
+     SRCS += ai_alsa1x.c
+    endif
+    ifeq ($(ALSA9),yes)
+     SRCS += ai_alsa.c
+    endif
+    ifeq ($(OSS),yes)
+     SRCS += ai_oss.c
+    endif
+  endif
+endif
+
+ifeq ($(MPLAYER_NETWORK),yes)
+SRCS += asf_streaming.c \
+        http.c \
+        network.c \
+        cookies.c \
+        asf_mmst_streaming.c \
+        pnm.c \
+        rtp.c \
+        stream_rtsp.c \
+
+SRCS += realrtsp/asmrp.c \
+        realrtsp/real.c \
+        realrtsp/rmff.c \
+        realrtsp/sdpplin.c \
+        realrtsp/xbuffer.c \
+
+SRCS += librtsp/rtsp.c \
+        librtsp/rtsp_rtp.c \
+        librtsp/rtsp_session.c \
+
+SRCS += freesdp/common.c \
+        freesdp/errorlist.c \
+        freesdp/parser.c \
+
+endif
+
+ifeq ($(DVBIN),yes)
+SRCS += dvbin.c
+SRCS += dvb_tune.c
+endif
+
+OBJS   = $(SRCS:.c=.o)
+INCLUDE = -I.. -I../libmpdemux -I../loader $(LIBAV_INC)
+CFLAGS  = $(OPTFLAGS) $(INCLUDE) $(XMMS_CFLAGS)
+
+.SUFFIXES: .c .o
+
+# .PHONY: all clean
+
+all:   $(LIBNAME)
+
+.c.o:
+       $(CC) -c $(CFLAGS) -o $@ $<
+
+$(LIBNAME):    $(OBJS)
+       $(AR) r $(LIBNAME) $(OBJS)
+       $(RANLIB) $(LIBNAME)
+
+clean:
+       rm -f *.o *.a *~ \
+       realrtsp/*.o realrtsp/*.a realrtsp/*~ \
+       librtsp/*.o librtsp/*.a librtsp/*~ \
+       freesdp/*.o freesdp/*.a freesdp/*~
+
+distclean: clean
+       rm -f .depend test
+
+dep:    depend
+
+depend:
+       $(CC) -MM $(CFLAGS) test.c $(SRCS) 1>.depend
+
+#
+# include dependency files if they exist
+#
+ifneq ($(wildcard .depend),)
+include .depend
+endif
similarity index 100%
rename from libmpdemux/ai_alsa.c
rename to stream/ai_alsa.c
similarity index 100%
rename from libmpdemux/ai_alsa1x.c
rename to stream/ai_alsa1x.c
similarity index 100%
rename from libmpdemux/ai_oss.c
rename to stream/ai_oss.c
similarity index 100%
rename from libmpdemux/audio_in.c
rename to stream/audio_in.c
similarity index 100%
rename from libmpdemux/audio_in.h
rename to stream/audio_in.h
similarity index 100%
rename from libmpdemux/cache2.c
rename to stream/cache2.c
similarity index 100%
rename from libmpdemux/cdd.h
rename to stream/cdd.h
similarity index 100%
rename from libmpdemux/cdda.c
rename to stream/cdda.c
similarity index 100%
rename from libmpdemux/cddb.c
rename to stream/cddb.c
similarity index 100%
rename from libmpdemux/cdinfo.c
rename to stream/cdinfo.c
similarity index 100%
rename from libmpdemux/cookies.c
rename to stream/cookies.c
similarity index 100%
rename from libmpdemux/cookies.h
rename to stream/cookies.h
similarity index 100%
rename from libmpdemux/cue_read.c
rename to stream/cue_read.c
similarity index 100%
rename from libmpdemux/cue_read.h
rename to stream/cue_read.h
similarity index 100%
rename from libmpdemux/dvb_tune.c
rename to stream/dvb_tune.c
similarity index 100%
rename from libmpdemux/dvbin.c
rename to stream/dvbin.c
similarity index 100%
rename from libmpdemux/dvbin.h
rename to stream/dvbin.h
similarity index 100%
rename from libmpdemux/http.c
rename to stream/http.c
similarity index 100%
rename from libmpdemux/http.h
rename to stream/http.h
similarity index 100%
rename from libmpdemux/mf.c
rename to stream/mf.c
similarity index 100%
rename from libmpdemux/mf.h
rename to stream/mf.h
similarity index 100%
rename from libmpdemux/netstream.h
rename to stream/netstream.h
similarity index 100%
rename from libmpdemux/network.c
rename to stream/network.c
similarity index 100%
rename from libmpdemux/network.h
rename to stream/network.h
similarity index 100%
rename from libmpdemux/open.c
rename to stream/open.c
similarity index 100%
rename from libmpdemux/pnm.c
rename to stream/pnm.c
similarity index 100%
rename from libmpdemux/rtp.c
rename to stream/rtp.c
similarity index 100%
rename from libmpdemux/rtp.h
rename to stream/rtp.h
similarity index 100%
rename from libmpdemux/stream.c
rename to stream/stream.c
similarity index 100%
rename from libmpdemux/stream.h
rename to stream/stream.h
similarity index 100%
rename from libmpdemux/stream_dvd.c
rename to stream/stream_dvd.c
similarity index 100%
rename from libmpdemux/stream_dvd.h
rename to stream/stream_dvd.h
similarity index 100%
rename from libmpdemux/stream_ftp.c
rename to stream/stream_ftp.c
similarity index 100%
rename from libmpdemux/stream_pvr.c
rename to stream/stream_pvr.c
similarity index 100%
rename from libmpdemux/stream_smb.c
rename to stream/stream_smb.c
similarity index 100%
rename from libmpdemux/stream_vcd.c
rename to stream/stream_vcd.c
similarity index 100%
rename from libmpdemux/tv.c
rename to stream/tv.c
similarity index 100%
rename from libmpdemux/tv.h
rename to stream/tv.h
similarity index 100%
rename from libmpdemux/tvi_def.h
rename to stream/tvi_def.h
similarity index 100%
rename from libmpdemux/tvi_dummy.c
rename to stream/tvi_dummy.c
similarity index 100%
rename from libmpdemux/tvi_v4l.c
rename to stream/tvi_v4l.c
similarity index 100%
rename from libmpdemux/tvi_v4l2.c
rename to stream/tvi_v4l2.c
similarity index 100%
rename from libmpdemux/url.c
rename to stream/url.c
similarity index 100%
rename from libmpdemux/url.h
rename to stream/url.h
similarity index 100%
rename from libmpdemux/vcd_read.h
rename to stream/vcd_read.h
index 3a8bd49..1d9da98 100644 (file)
@@ -18,7 +18,7 @@
 #include "config.h"
 #include "mp_msg.h"
 #include "subreader.h"
-#include "libmpdemux/stream.h"
+#include "stream/stream.h"
 
 #ifdef HAVE_ENCA
 #include <enca.h>