Use new virtual IO api
authorNelson Ferreira <nelson.ferreira@ieee.org>
Thu, 31 Dec 2015 16:58:19 +0000 (11:58 -0500)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Thu, 31 Dec 2015 17:00:20 +0000 (12:00 -0500)
commitb1c8382d301218200f40e9ed7529ed0da098e398
tree5af7fba16c159fb15ea5f681df5d6dc11f74693b
parentc3994e1fd3538431675c60a8ce53528062ee0911
Use new virtual IO api

* src/media/media-ffmpeg.c: Remove the no-longer used
media_ffmpeg_vio_open, media_ffmpeg_vio_close,
media_ffmpeg_vio_write.
(media_ffmpeg_vio_read): Use the new opaque pointer interface of
AVIOContext, which points to our media_data struct directly.
(media_ffmpeg_vio_seek): Ditto.
(media_ffmpeg_open_data): Use the new AVIOContext and allocate one
pointing to media_ffmpeg_vio_read, media_ffmpeg_vio_seek and with
opaque data as our media_data.  Use the context to open the input.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
src/media/media-ffmpeg.c