mpv-player/mpv — pull request #276 by wrl (2013-10-08 17:30:57+00:00)
Title: reimplement mp_ring_read() in terms of mp_ring_read_cb()

these two functions were nearly identical, so here's a way of factoring out some of the duplication.