[MPlayer-dev-eng] [PATCH] Network synchronized playback using UDP

Diego Biurrun diego at biurrun.de
Wed Jul 14 11:41:42 CEST 2010


On Fri, Jul 09, 2010 at 02:56:45PM -0700, Jason Holt wrote:
> 
> Another person asked me for the patch, so I've updated it to work with
> current svn (and attached it here).  I don't know what the problems
> are or how to fix them with doxygen or --disable-network, but I can't
> really justify continuing to work on this patch beyond the 26
> revisions I've done.

I'd like to apply it, but the patch is incomplete, it is missing udp_sync.c
and udp_sync.h...

> --- Makefile	(revision 31652)
> +++ Makefile	(working copy)
> @@ -670,6 +670,7 @@
>                 mp_fifo.c \
>                 mplayer.c \
>                 parser-mpcmd.c \
> +               udp_sync.c \
>                 input/input.c \
>                 libao2/ao_mpegpes.c \
>                 libao2/ao_null.c \

Instead add

SRCS_MPLAYER-$(NETWORK)               += udp_sync.c

in the appropriate place and you're done.

> --- mplayer.c	(revision 31652)
> +++ mplayer.c	(working copy)
> @@ -2190,6 +2195,15 @@
>  
> +    if (udp_slave) {
> +      int udp_master_exited = udp_slave_sync(mpctx);
> +      if (udp_master_exited) {
> +            mp_msg(MSGT_CPLAYER, MSGL_INFO, MSGTR_MasterQuit);
> +            exit_player(EXIT_QUIT);
> +      }
> +      return 0;
> +    }

Indentation is off.

Diego


More information about the MPlayer-dev-eng mailing list