[MPlayer-dev-eng] vo_udp.c udp streaming support

Dirk noisyb at gmx.net
Thu Mar 7 13:06:27 CET 2002


This is the first hack and was only tested with Linux so far...
everything belongs to main/libvo/ of current CVS version...

just start

mplayer -vo udp movie

and (for example)

mtvp udp:1234

and you'll see what it does.. port 1234 is still hardcoded via #define
in libvo/vo_udp.c...

Dirk

-------------- next part --------------
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/Makefile,v
retrieving revision 1.30
diff -u -r1.30 Makefile
--- Makefile	9 Feb 2002 01:30:35 -0000	1.30
+++ Makefile	7 Mar 2002 11:22:10 -0000
@@ -3,7 +3,7 @@
 
 LIBNAME = libvo.a
 
-SRCS=aspect.c aclib.c osd.c font_load.c video_out.c vo_null.c vo_pgm.c vo_md5.c vo_mpegpes.c x11_common.c vo_yuv4mpeg.c $(OPTIONAL_SRCS) img_format.c sub.c
+SRCS=aspect.c aclib.c osd.c font_load.c video_out.c vo_null.c vo_udp.o vo_pgm.c vo_md5.c vo_mpegpes.c x11_common.c vo_yuv4mpeg.c $(OPTIONAL_SRCS) img_format.c sub.c
 OBJS=$(SRCS:.c=.o)
 
 ifeq ($(VIDIX),yes)
Index: video_out.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/video_out.c,v
retrieving revision 1.42
diff -u -r1.42 video_out.c
--- video_out.c	22 Feb 2002 18:00:38 -0000	1.42
+++ video_out.c	7 Mar 2002 11:22:10 -0000
@@ -66,6 +66,7 @@
 //
 // Externally visible list of all vo drivers
 //
+extern vo_functions_t video_out_udp;
 extern vo_functions_t video_out_mga;
 extern vo_functions_t video_out_xmga;
 extern vo_functions_t video_out_x11;
@@ -159,6 +160,7 @@
 //        &video_out_odivx,
         &video_out_pgm,
         &video_out_md5,
+        &video_out_udp,
 	&video_out_mpegpes,
 	&video_out_yuv4mpeg,
 #ifdef HAVE_VESA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vo_udp.c
Type: image/x-xbitmap
Size: 14426 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20020307/db91a7e1/attachment.xbm>


More information about the MPlayer-dev-eng mailing list