[Android] libvlc: improve thumbnailer

Thomas Guillem git at videolan.org
Wed Sep 9 15:19:19 CEST 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Sep  9 15:12:28 2015 +0200| [f74e7a9d0b20d0e15dd0b600dc599dc5013c1ff1] | committer: Thomas Guillem

libvlc: improve thumbnailer

Use event manager to wait for the good position instead of polling position.
Use libvlc_video_set_format_callbacks instead of libvlc_video_set_format:
buffers are configured and allocated from libvlc_video_format_cb.

Don't preparse video in order to know the video size. Indeed, some format like
.ts don't have video size information when preparsed.

Wait for 3seconds max for a valid video output, then wait 7 seconds max for a
valid frame at the given position.

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=f74e7a9d0b20d0e15dd0b600dc599dc5013c1ff1
---

 libvlc/jni/thumbnailer.c |  261 ++++++++++++++++++++++++++--------------------
 1 file changed, 146 insertions(+), 115 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commitdiff;h=f74e7a9d0b20d0e15dd0b600dc599dc5013c1ff1


More information about the Android mailing list