vlc.git
5 years agoContribs: update libbluray to 0.6.2
Jean-Baptiste Kempf [Wed, 17 Sep 2014 06:34:58 +0000 (08:34 +0200)]
Contribs: update libbluray to 0.6.2

5 years agoContribs: update gpg-error to 1.15
Jean-Baptiste Kempf [Wed, 17 Sep 2014 06:28:41 +0000 (08:28 +0200)]
Contribs: update gpg-error to 1.15

5 years agozvbi: return actual last visible row
Hannes Domani [Mon, 15 Sep 2014 14:50:36 +0000 (16:50 +0200)]
zvbi: return actual last visible row

Currently in most cases the row after the last is returned.
When the last row is visible vbi_draw_vt_page_region() could
crash, because it went over the size of p_page.text and use
invalid values (>=40) as index for p_page.color_map.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 years agodoc: grammar
Rémi Denis-Courmont [Tue, 16 Sep 2014 21:46:18 +0000 (00:46 +0300)]
doc: grammar

5 years agoaccess/http: Share cookies between all playlist items
Antti Ajanki [Tue, 16 Sep 2014 18:24:41 +0000 (21:24 +0300)]
access/http: Share cookies between all playlist items

Shared cookies are required, for example, by certain HDS and HLS streams
that set a cookie when the manifest is read and expect it to be sent
back on subsequent fragment requests.

The cookie jar is created during playlist initialization. HTTP requests
inherit the cookie jar from the playlist.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
5 years agocore: Move httpcookies.c to core
Antti Ajanki [Tue, 16 Sep 2014 18:24:40 +0000 (21:24 +0300)]
core: Move httpcookies.c to core

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
5 years agovdpau/chroma: skip forward to current picture if forced (fixes #11410)
Rémi Denis-Courmont [Mon, 15 Sep 2014 16:16:18 +0000 (19:16 +0300)]
vdpau/chroma: skip forward to current picture if forced (fixes #11410)

VDPAU introduces a delay of one field (one picture if not deinterlacing).
This is normally not an issue as the PTS is preserved. But it does not
work if there is only one picture not followed by another one.

5 years agoavcodec: fix missing include
Tristan Matthews [Sun, 14 Sep 2014 17:29:55 +0000 (13:29 -0400)]
avcodec: fix missing include

Needed for av_freep

5 years agogl: initialize fullscreen state correctly
Rémi Denis-Courmont [Sat, 13 Sep 2014 14:50:24 +0000 (17:50 +0300)]
gl: initialize fullscreen state correctly

5 years agogl: fix changing window size
Rémi Denis-Courmont [Sun, 14 Sep 2014 17:08:26 +0000 (20:08 +0300)]
gl: fix changing window size

5 years agoinput: fix forward NULL
Rémi Denis-Courmont [Sun, 14 Sep 2014 14:57:49 +0000 (17:57 +0300)]
input: fix forward NULL

5 years agodecoder: fix potential NULL dereference
Rémi Denis-Courmont [Sun, 14 Sep 2014 14:53:03 +0000 (17:53 +0300)]
decoder: fix potential NULL dereference

5 years agoposix: use getcwd() directly, ignore $PWD and avoid ToCToU
Rémi Denis-Courmont [Sun, 14 Sep 2014 14:47:32 +0000 (17:47 +0300)]
posix: use getcwd() directly, ignore $PWD and avoid ToCToU

5 years agolibmpeg2: eliminate dead code and factor
Rémi Denis-Courmont [Sun, 14 Sep 2014 14:42:26 +0000 (17:42 +0300)]
libmpeg2: eliminate dead code and factor

5 years agolibmpeg2: reduce variable scope
Rémi Denis-Courmont [Sun, 14 Sep 2014 14:30:54 +0000 (17:30 +0300)]
libmpeg2: reduce variable scope

5 years agovout_window: inline vout_window_Control()
Rémi Denis-Courmont [Sat, 13 Sep 2014 14:41:43 +0000 (17:41 +0300)]
vout_window: inline vout_window_Control()

5 years agovout_window: add vout_window_vaControl() helper
Rémi Denis-Courmont [Sat, 13 Sep 2014 14:41:19 +0000 (17:41 +0300)]
vout_window: add vout_window_vaControl() helper

5 years agogl: remove redundant pointer
Rémi Denis-Courmont [Sat, 13 Sep 2014 15:23:26 +0000 (18:23 +0300)]
gl: remove redundant pointer

5 years agoxcb/glx: remove redundant pointer
Rémi Denis-Courmont [Sat, 13 Sep 2014 14:18:46 +0000 (17:18 +0300)]
xcb/glx: remove redundant pointer

5 years agoegl: reorder to avoid forward declarations
Rémi Denis-Courmont [Sat, 13 Sep 2014 14:45:12 +0000 (17:45 +0300)]
egl: reorder to avoid forward declarations

5 years agoglx: reorder to avoid forward declarations
Rémi Denis-Courmont [Sat, 13 Sep 2014 14:04:48 +0000 (17:04 +0300)]
glx: reorder to avoid forward declarations

5 years agovdpau/avcodec: cleanup
Rémi Denis-Courmont [Sat, 13 Sep 2014 11:07:37 +0000 (14:07 +0300)]
vdpau/avcodec: cleanup

5 years agovda: cleanup
Rémi Denis-Courmont [Sat, 13 Sep 2014 10:57:33 +0000 (13:57 +0300)]
vda: cleanup

5 years agoavcodec: close acceleration back-end after the context
Rémi Denis-Courmont [Sat, 13 Sep 2014 10:05:35 +0000 (13:05 +0300)]
avcodec: close acceleration back-end after the context

5 years agovda: remove write-only parameter
Rémi Denis-Courmont [Sat, 13 Sep 2014 10:46:32 +0000 (13:46 +0300)]
vda: remove write-only parameter

5 years agoavcodec: pass AVCodecContext to VA setup callback
Rémi Denis-Courmont [Sat, 13 Sep 2014 10:43:07 +0000 (13:43 +0300)]
avcodec: pass AVCodecContext to VA setup callback

5 years agoavcodec: pass AVCodecContext to VA destroy callback
Rémi Denis-Courmont [Sat, 13 Sep 2014 10:40:40 +0000 (13:40 +0300)]
avcodec: pass AVCodecContext to VA destroy callback

5 years agoavcodec: free extradata after closing the context
Rémi Denis-Courmont [Sat, 13 Sep 2014 09:59:48 +0000 (12:59 +0300)]
avcodec: free extradata after closing the context

5 years agoavcodec: move debug message to correct place
Rémi Denis-Courmont [Sat, 13 Sep 2014 09:59:37 +0000 (12:59 +0300)]
avcodec: move debug message to correct place

5 years agoavcodec/encoder: fix alloc/free of context
Rémi Denis-Courmont [Sat, 13 Sep 2014 09:43:52 +0000 (12:43 +0300)]
avcodec/encoder: fix alloc/free of context

5 years agoavcodec: use avcodec_free_context() where applicable
Rémi Denis-Courmont [Sat, 13 Sep 2014 09:48:17 +0000 (12:48 +0300)]
avcodec: use avcodec_free_context() where applicable

Fix leak on error, fix mismatched free function on success.

5 years agovaapi: inline init and deinit functions
Rémi Denis-Courmont [Sat, 13 Sep 2014 09:24:40 +0000 (12:24 +0300)]
vaapi: inline init and deinit functions

5 years agovaapi: reorder to avoid forward declarations, no functional changes
Rémi Denis-Courmont [Sat, 13 Sep 2014 09:20:57 +0000 (12:20 +0300)]
vaapi: reorder to avoid forward declarations, no functional changes

5 years agowl/shm: print supported buffer formats to log
Rémi Denis-Courmont [Fri, 12 Sep 2014 19:49:38 +0000 (22:49 +0300)]
wl/shm: print supported buffer formats to log

5 years agov4l2: detect and use the Sundtek driver
Rémi Denis-Courmont [Fri, 12 Sep 2014 15:55:47 +0000 (18:55 +0300)]
v4l2: detect and use the Sundtek driver

5 years agov4l2: simplify dynamic loading of libv4l2
Rémi Denis-Courmont [Thu, 11 Sep 2014 21:14:15 +0000 (00:14 +0300)]
v4l2: simplify dynamic loading of libv4l2

5 years agoandroid: request rotation if video is oriented
Felix Abecassis [Fri, 12 Sep 2014 17:43:21 +0000 (19:43 +0200)]
android: request rotation if video is oriented

5 years agoyuv_rgb: bail out if input/output orientation does not match
Felix Abecassis [Fri, 12 Sep 2014 17:40:54 +0000 (19:40 +0200)]
yuv_rgb: bail out if input/output orientation does not match

5 years agovout: fix a deadlock with the picture pool lock
Felix Abecassis [Tue, 9 Sep 2014 17:29:06 +0000 (19:29 +0200)]
vout: fix a deadlock with the picture pool lock

A deadlock could occur in an high load situation where the vout and
the decoder are taking excessive amounts of time.

The vout thread repeatedly call ThreadDisplayPicture in its main loop
until it returns an error, while keeping the picture pool locked. If
no picture was recently received, the vout will redisplay the current
picture (a "refresh") by calling ThreadDisplayRenderPicture with
is_forced=true. If this refresh is excessively long, the vout thread
will be stuck in a refresh loop. The decoder cannot make any progress
since the picture pool lock is hold and the vout won't be polling for
control commands, yielding a total deadlock of the program.

This situation can be reproduced artificially by sleeping in the
decoder and decreasing variable VOUT_REDISPLAY_DELAY.

A simple solution to this issue is to exit the ThreadDisplayPicture
loop after refreshing. Since a refresh typically occurs when no new
pictures are received from the decoder, this should not decrease
performance.

5 years agoskins2: os2: save and restore FPU cw
KO Myung-Hun [Wed, 10 Sep 2014 08:00:49 +0000 (17:00 +0900)]
skins2: os2: save and restore FPU cw

WinCreateMsgQueue() changes FPU cw but does not restore it. This causes
SIGFPE later.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 years agoUpdate VLSub
Jean-Baptiste Kempf [Fri, 12 Sep 2014 07:07:17 +0000 (09:07 +0200)]
Update VLSub

5 years agoavcodec: remove no-op
Rémi Denis-Courmont [Thu, 11 Sep 2014 20:37:08 +0000 (23:37 +0300)]
avcodec: remove no-op

This is already taken care of by avcodec_open2().

5 years agoavcodec: remove redundant codec_id parameter
Rémi Denis-Courmont [Thu, 11 Sep 2014 20:31:19 +0000 (23:31 +0300)]
avcodec: remove redundant codec_id parameter

5 years agoavcodec: remove redundant codec name parameter
Rémi Denis-Courmont [Thu, 11 Sep 2014 20:23:38 +0000 (23:23 +0300)]
avcodec: remove redundant codec name parameter

5 years agoavcodec: constify decoder_sys_t.p_codec
Rémi Denis-Courmont [Thu, 11 Sep 2014 20:16:50 +0000 (23:16 +0300)]
avcodec: constify decoder_sys_t.p_codec

5 years agoavcodec: remove indirection
Rémi Denis-Courmont [Thu, 11 Sep 2014 20:16:39 +0000 (23:16 +0300)]
avcodec: remove indirection

5 years agoavcodec: do not overwrite libavcodec internal AVCodec data
Rémi Denis-Courmont [Thu, 11 Sep 2014 20:15:40 +0000 (23:15 +0300)]
avcodec: do not overwrite libavcodec internal AVCodec data

5 years agoavcodec: remove redundant decoder_sys_t.i_cat
Rémi Denis-Courmont [Thu, 11 Sep 2014 20:03:31 +0000 (23:03 +0300)]
avcodec: remove redundant decoder_sys_t.i_cat

5 years agoavcodec: remove write-only decoder_sys_t.i_skip_idct
Rémi Denis-Courmont [Thu, 11 Sep 2014 19:42:32 +0000 (22:42 +0300)]
avcodec: remove write-only decoder_sys_t.i_skip_idct

5 years agoavcodec: remove deprecated motion vector visualization option
Rémi Denis-Courmont [Thu, 11 Sep 2014 19:18:54 +0000 (22:18 +0300)]
avcodec: remove deprecated motion vector visualization option

5 years agoavcodec: remove useless indirection to The Context
Rémi Denis-Courmont [Thu, 11 Sep 2014 19:14:57 +0000 (22:14 +0300)]
avcodec: remove useless indirection to The Context

5 years agoavcodec: make decoder callbacks static
Rémi Denis-Courmont [Thu, 11 Sep 2014 19:08:46 +0000 (22:08 +0300)]
avcodec: make decoder callbacks static

5 years agoavcodec: move audio-specific code to audio.c
Rémi Denis-Courmont [Thu, 11 Sep 2014 19:04:15 +0000 (22:04 +0300)]
avcodec: move audio-specific code to audio.c

5 years agoavcodec: move video-specific code to video.c
Rémi Denis-Courmont [Thu, 11 Sep 2014 18:56:53 +0000 (21:56 +0300)]
avcodec: move video-specific code to video.c

5 years agohwdummy: remove no longer useful plugin
Rémi Denis-Courmont [Thu, 11 Sep 2014 18:35:08 +0000 (21:35 +0300)]
hwdummy: remove no longer useful plugin

5 years agovdpau: fix mismatched heap free function
Rémi Denis-Courmont [Thu, 11 Sep 2014 18:29:53 +0000 (21:29 +0300)]
vdpau: fix mismatched heap free function

5 years agommal: Add mmal_picture.h to Makefile
Julian Scheel [Thu, 11 Sep 2014 15:16:07 +0000 (17:16 +0200)]
mmal: Add mmal_picture.h to Makefile

The header needs to be referenced by the Makefile to be included in the dist
tarball.

Signed-off-by: Julian Scheel <julian@jusst.de>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 years agoupdate: RSA support
Rafaël Carré [Thu, 11 Sep 2014 14:31:21 +0000 (16:31 +0200)]
update: RSA support

5 years agodirectory: fix memory leaks
Hannes Domani [Tue, 2 Sep 2014 18:13:28 +0000 (20:13 +0200)]
directory: fix memory leaks

Signed-off-by: Tristan Matthews <le.businessman@gmail.com>
5 years agosubtitle-demux: speedup SSA parser
Hannes Domani [Wed, 10 Sep 2014 11:12:33 +0000 (13:12 +0200)]
subtitle-demux: speedup SSA parser

Signed-off-by: Tristan Matthews <le.businessman@gmail.com>
5 years agoUsing fabsf for floating value instead of abs
Thierry Foucu [Tue, 9 Sep 2014 18:22:43 +0000 (11:22 -0700)]
Using fabsf for floating value instead of abs

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
5 years agomacosx: video effects: fix hue slider and convert saved video effect profiles to...
David Fuhrmann [Wed, 10 Sep 2014 17:00:44 +0000 (19:00 +0200)]
macosx: video effects: fix hue slider and convert saved video effect profiles to new range

Upgrading old saved values is done automatically. This will unset (=0) this value
if opened with older VLC versions afterwards.

5 years agomacosx: use isEqualToString instead of isEqual
David Fuhrmann [Wed, 10 Sep 2014 17:00:15 +0000 (19:00 +0200)]
macosx: use isEqualToString instead of isEqual

5 years agoconfigure.ac: fix check for net/if.h on osx
David Fuhrmann [Mon, 8 Sep 2014 17:34:36 +0000 (19:34 +0200)]
configure.ac: fix check for net/if.h on osx

5 years agosubtitle-demux: fix memory leaks (fixes #11908)
Hannes Domani [Tue, 9 Sep 2014 00:17:03 +0000 (02:17 +0200)]
subtitle-demux: fix memory leaks (fixes #11908)

Signed-off-by: Tristan Matthews <le.businessman@gmail.com>
5 years agoTS mux: fix ebcc69cfb1569a0fcedf10498606b231ae6fcb7c
Rafaël Carré [Wed, 10 Sep 2014 15:15:45 +0000 (17:15 +0200)]
TS mux: fix ebcc69cfb1569a0fcedf10498606b231ae6fcb7c

Only modify bitstream (PCR & PES), but not VLC core timestamps

5 years agompeg mux: simplify EStoPES prototype
Rafaël Carré [Wed, 10 Sep 2014 14:31:41 +0000 (16:31 +0200)]
mpeg mux: simplify EStoPES prototype

5 years agoTS mux: use CLOCK_FREQ
Rafaël Carré [Wed, 10 Sep 2014 14:20:50 +0000 (16:20 +0200)]
TS mux: use CLOCK_FREQ

5 years agoTS mux: use variable
Rafaël Carré [Wed, 10 Sep 2014 08:34:25 +0000 (10:34 +0200)]
TS mux: use variable

5 years agoTS mux: group codecs using the same IDs
Rafaël Carré [Wed, 10 Sep 2014 08:32:50 +0000 (10:32 +0200)]
TS mux: group codecs using the same IDs

5 years agoOgg: split opus frame duration in its own file
Rafaël Carré [Tue, 9 Sep 2014 15:19:18 +0000 (17:19 +0200)]
Ogg: split opus frame duration in its own file

5 years agoplaylist: fetcher: fix memory leaks
Hannes Domani [Wed, 3 Sep 2014 17:52:28 +0000 (19:52 +0200)]
playlist: fetcher: fix memory leaks

Signed-off-by: Tristan Matthews <le.businessman@gmail.com>
5 years agoOpus: remove obsolete TODO
Rafaël Carré [Tue, 9 Sep 2014 15:08:37 +0000 (17:08 +0200)]
Opus: remove obsolete TODO

This was handled in 675072a8a6a520f79e9892e26ff3be98b069df7a

5 years agointerface: fix memory leak
Hannes Domani [Fri, 5 Sep 2014 14:15:06 +0000 (16:15 +0200)]
interface: fix memory leak

Signed-off-by: Tristan Matthews <le.businessman@gmail.com>
5 years agostream_out: match exactly access/mux for warnings
Francois Cartegnie [Tue, 9 Sep 2014 11:50:56 +0000 (13:50 +0200)]
stream_out: match exactly access/mux for warnings

5 years agoDVB: strip character emphasis control codes
Rafaël Carré [Tue, 9 Sep 2014 10:05:07 +0000 (12:05 +0200)]
DVB: strip character emphasis control codes

Fix display of BSkyB program names as 0x86Foobar0x87

5 years agoSupport parsing IAS* in AVI
Jean-Baptiste Kempf [Sat, 6 Sep 2014 01:55:45 +0000 (03:55 +0200)]
Support parsing IAS* in AVI

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
5 years agosimple mixer: rectify input channel checks
Rémi Denis-Courmont [Sun, 7 Sep 2014 11:11:43 +0000 (14:11 +0300)]
simple mixer: rectify input channel checks

For instance 6.1 to 4.0 would break.
Also remove a bunch of tautologies.

5 years agosimple mixer: allow downmixing to 5.0 (not just 5.1)
Rémi Denis-Courmont [Sun, 7 Sep 2014 10:42:12 +0000 (13:42 +0300)]
simple mixer: allow downmixing to 5.0 (not just 5.1)

This was already supported, but filtered out while probing.

5 years agosimple mixer: remove useless allocation and simplify
Rémi Denis-Courmont [Sun, 7 Sep 2014 10:33:45 +0000 (13:33 +0300)]
simple mixer: remove useless allocation and simplify

5 years agosimple mixer: remove no-op
Rémi Denis-Courmont [Sun, 7 Sep 2014 10:28:54 +0000 (13:28 +0300)]
simple mixer: remove no-op

The core ensures that i_codec and audio.i_format are equal.

5 years agoGnuTLS: fix typo
Benjamin Drung [Sat, 6 Sep 2014 21:44:07 +0000 (23:44 +0200)]
GnuTLS: fix typo

5 years agodecoder: don't reenable pause during decoder deletion
Rémi Denis-Courmont [Sat, 6 Sep 2014 19:10:06 +0000 (22:10 +0300)]
decoder: don't reenable pause during decoder deletion

This is useless since a274331ee5b95d7e2537255344d5b4d2991a41a3.

5 years agocontrib: freetype: avoid circular dependency with harfbuzz
Rafaël Carré [Sat, 6 Sep 2014 16:12:21 +0000 (18:12 +0200)]
contrib: freetype: avoid circular dependency with harfbuzz

5 years agocontrib: make sure freetype depends on zlib
Rafaël Carré [Sat, 6 Sep 2014 16:09:58 +0000 (18:09 +0200)]
contrib: make sure freetype depends on zlib

5 years agopkg-static.sh: also merge Requires.private with Requires
Rafaël Carré [Sat, 6 Sep 2014 16:09:21 +0000 (18:09 +0200)]
pkg-static.sh: also merge Requires.private with Requires

5 years agognutls: remove tautology / dead code
Rémi Denis-Courmont [Sat, 6 Sep 2014 14:19:12 +0000 (17:19 +0300)]
gnutls: remove tautology / dead code

5 years agoContribs: Update dvdnav to 5.0.1
Jean-Baptiste Kempf [Fri, 5 Sep 2014 06:43:05 +0000 (08:43 +0200)]
Contribs: Update dvdnav to 5.0.1

5 years agoextras/ios: fix build script
Felix Paul Kühne [Thu, 4 Sep 2014 20:01:50 +0000 (22:01 +0200)]
extras/ios: fix build script

5 years agommdevice: fix crash if several channel volumes change (fixes #12086)
Rémi Denis-Courmont [Thu, 4 Sep 2014 19:54:13 +0000 (22:54 +0300)]
mmdevice: fix crash if several channel volumes change (fixes #12086)

5 years agommal/vout: Use default allocator for mmal pool
Julian Scheel [Thu, 4 Sep 2014 10:55:12 +0000 (12:55 +0200)]
mmal/vout: Use default allocator for mmal pool

The port agnostic allocator helpers in mmal leak memory (see
https://github.com/raspberrypi/firmware/issues/310). As there is no benefit
using them instead of the default allocator in our case anyway, switch to the
default allocator, which avoids memory leakage on pool destruction.

Signed-off-by: Julian Scheel <julian@jusst.de>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 years agommal/deinterlace: Use default allocator for mmal pool
Julian Scheel [Thu, 4 Sep 2014 10:55:11 +0000 (12:55 +0200)]
mmal/deinterlace: Use default allocator for mmal pool

The port agnostic allocator helpers in mmal leak memory (see
https://github.com/raspberrypi/firmware/issues/310). As there is no benefit
using them instead of the default allocator in our case anyway, switch to the
default allocator, which avoids memory leakage on pool destruction.

Signed-off-by: Julian Scheel <julian@jusst.de>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 years agommal/deinterlace: Remove double pool allocation
Julian Scheel [Thu, 4 Sep 2014 10:55:10 +0000 (12:55 +0200)]
mmal/deinterlace: Remove double pool allocation

The mmal buffer pool was allocated twice by accident, which caused a leak of
the first one being allocated.

Signed-off-by: Julian Scheel <julian@jusst.de>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 years agoconfigure: fix wayland-client version requirements
Rémi Denis-Courmont [Thu, 4 Sep 2014 16:09:47 +0000 (19:09 +0300)]
configure: fix wayland-client version requirements

5 years agommal/deinterlace: Remove unused code
Julian Scheel [Thu, 4 Sep 2014 10:49:54 +0000 (12:49 +0200)]
mmal/deinterlace: Remove unused code

Remove leftovers from older codeparts.

Signed-off-by: Julian Scheel <julian@jusst.de>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 years agommal/deinterlace: Fix build warning
Julian Scheel [Thu, 4 Sep 2014 10:49:53 +0000 (12:49 +0200)]
mmal/deinterlace: Fix build warning

Comparing signed to unsigned.

Signed-off-by: Julian Scheel <julian@jusst.de>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 years agommal/deinterlace: Teardown cleanup
Julian Scheel [Thu, 4 Sep 2014 10:49:52 +0000 (12:49 +0200)]
mmal/deinterlace: Teardown cleanup

Refactor teardown code a little, merging the picture_pool destruction into the
core Close method as well as adding a missing free and tweak teardown order to
be a bit more sane.

Signed-off-by: Julian Scheel <julian@jusst.de>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 years agommal/mmal_picture: Don't wait inifinitely for picture
Julian Scheel [Thu, 4 Sep 2014 10:46:20 +0000 (12:46 +0200)]
mmal/mmal_picture: Don't wait inifinitely for picture

Use mmal_queue_timedwait instead of mmal_queue_wait to avoid deadlocks if due
to some unexpected reason no mmal buffer is available for a picture to be
locked. This makes the mmal plugins more robust against mmal internal
failures.

Signed-off-by: Julian Scheel <julian@jusst.de>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 years agommal/codec: Check picture buffer size before usage
Julian Scheel [Thu, 4 Sep 2014 10:43:02 +0000 (12:43 +0200)]
mmal/codec: Check picture buffer size before usage

We need to make sure that a buffer is big enough to store the amount of data
we expect to receive from the decoder. Without doing this memory could be
corrupted due to the decoder writing outside the allocate memory.

Signed-off-by: Julian Scheel <julian@jusst.de>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 years agommal/vout: Properly populate plane specification
Julian Scheel [Thu, 4 Sep 2014 10:43:01 +0000 (12:43 +0200)]
mmal/vout: Properly populate plane specification

The pictures plane specifications were always filled with the size information
obtained from the vlc picture format combined with the assumption of having 3
planes. As this is not correct for the opaque case were only one plane with a
fixed size, which matches the mmal video_render input size, is used, change
the code to take care of this.
This change is required to provide other plugins reliable information about
the allocated data buffer size.

Signed-off-by: Julian Scheel <julian@jusst.de>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>