[MPlayer-dev-eng] r33242 quick fix
Clément Bœsch
ubitux at gmail.com
Fri Apr 15 22:17:02 CEST 2011
Two users just complain about r33242 on IRC. Should I apply the attached
patch, or anyone has a better way to deal with the issue?
--
Clément B.
-------------- next part --------------
Index: mplayer.c
===================================================================
--- mplayer.c (revision 33267)
+++ mplayer.c (working copy)
@@ -2246,7 +2246,8 @@
if (*time_frame > 0.001 && !(vo_flags&256))
*time_frame = timing_sleep(*time_frame);
- handle_udp_master(mpctx->sh_video->pts);
+ if (mpctx->sh_video) handle_udp_master(mpctx->sh_video->pts);
+ else if (mpctx->sh_audio) handle_udp_master(mpctx->sh_audio->pts);
return frame_time_remaining;
}
@@ -2539,7 +2540,8 @@
}
}
#endif
- handle_udp_master(mpctx->sh_video->pts);
+ if (mpctx->sh_video) handle_udp_master(mpctx->sh_video->pts);
+ else if (mpctx->sh_audio) handle_udp_master(mpctx->sh_audio->pts);
usec_sleep(20000);
}
if (cmd && cmd->id == MP_CMD_PAUSE) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20110415/1998584e/attachment.pgp>
More information about the MPlayer-dev-eng
mailing list