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

Diego Biurrun diego at biurrun.de
Fri Feb 19 02:07:51 CET 2010


On Thu, Feb 18, 2010 at 12:48:03PM -0800, Jason Holt wrote:
> On Tue, Feb 16, 2010 at 3:57 PM, Jason Holt <jholt at google.com> wrote:
> 
> > Somebody else recently asked me for a copy of my udp network sync patch.
> >  It'd be really great if someone can check this patch in.  Incidentally, I
> > never mentioned how we're using it:
> >
> > http://www.youtube.com/watch?v=ux8ccfwz8oA
> >
> > http://google-latlong.blogspot.com/2009/12/sometimes-eight-screens-are-better-than.html
> >
> >
> Here's an updated patch against the most recent svn sync.

> --- mplayer.c	(revision 30612)
> +++ mplayer.c	(working copy)
> @@ -684,7 +691,11 @@
>  void exit_player_with_rc(enum exit_reason how, int rc)
>  {
>  
> -  if (mpctx->user_muted && !mpctx->edl_muted) mixer_mute(&mpctx->mixer);
> +  if (mpctx->user_muted && !mpctx->edl_muted) mixer_mute(&mpctx->mixer); 

I wonder what the difference is..

> --- mplayer.h	(revision 30612)
> +++ mplayer.h	(working copy)
> @@ -57,5 +57,7 @@
>  
>  void update_set_of_subtitles(void);
> +void exit_player(exit_reason_t);
> +void exit_sighandler(int);

exit_player is already declared in mp_core.h.

> --- udp_sync.c	(revision 0)
> +++ udp_sync.c	(revision 0)
> @@ -0,0 +1,218 @@
> +    } else {
> +        printf("UDP wait error (probably a timeout). Continuing anyway.\n");

mp_msg

Diego



More information about the MPlayer-dev-eng mailing list