]> git.sesse.net Git - vlc/log
vlc
9 years agodemux: ts: ensure iod is present when looking for SLDesc
Francois Cartegnie [Wed, 25 Mar 2015 21:38:24 +0000 (22:38 +0100)]
demux: ts: ensure iod is present when looking for SLDesc

9 years agoconfigure: simplify maintainer mode and rectify default in help
Rémi Denis-Courmont [Wed, 25 Mar 2015 20:30:32 +0000 (22:30 +0200)]
configure: simplify maintainer mode and rectify default in help

9 years agoadded start playback in paused mode (#2936)
Aleksandr Pasechnik [Fri, 13 Mar 2015 01:49:52 +0000 (01:49 +0000)]
added start playback in paused mode (#2936)

Added a boolean Playlist preference called start-pause.

Setting the preference causes the src/input/input.c Run function to call the
ControlPause function after Init finishes successfully.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agoQt: avoid redefine warning
Jean-Baptiste Kempf [Wed, 25 Mar 2015 14:40:52 +0000 (15:40 +0100)]
Qt: avoid redefine warning

9 years agoinput: drop ITEM_TYPE_CDDA
Thomas Guillem [Tue, 24 Mar 2015 16:31:21 +0000 (16:31 +0000)]
input: drop ITEM_TYPE_CDDA

Since it's not used anymore.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agolibvlc: add libvlc_media_get_type
Thomas Guillem [Tue, 24 Mar 2015 16:22:20 +0000 (16:22 +0000)]
libvlc: add libvlc_media_get_type

Get the type of the media.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agoinput: handle recursive parsing in preparser
Thomas Guillem [Tue, 24 Mar 2015 16:22:19 +0000 (16:22 +0000)]
input: handle recursive parsing in preparser

Add i_preparse_depth in input_item to handle how many level of sub items can be
parsed.

The "recursive" option is now moved from access/file to the playlist category.

You can now abort a long local directory opening.

NET items won't be parsed recursively since playlist_preparser_Push is not
called with the META_REQUEST_OPTION_SCOPE_NETWORK argument.

Fixes #13850
Fixes #11921
Fixes #13872

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agosftp: change item b_net
Thomas Guillem [Tue, 24 Mar 2015 16:22:18 +0000 (16:22 +0000)]
sftp: change item b_net

Set b_net to true.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agoupnp: change item b_net and i_type
Thomas Guillem [Tue, 24 Mar 2015 16:22:17 +0000 (16:22 +0000)]
upnp: change item b_net and i_type

Set b_net to true, and set ITEM_TYPE_DIRECTORY if the item is a share of a
directory.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agodsm: change item b_net and i_type
Thomas Guillem [Tue, 24 Mar 2015 16:22:16 +0000 (16:22 +0000)]
dsm: change item b_net and i_type

Set b_net to true, and set ITEM_TYPE_DIRECTORY if the item is a share of a
directory.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agoinput: add b_net variable in item
Thomas Guillem [Tue, 24 Mar 2015 16:22:15 +0000 (16:22 +0000)]
input: add b_net variable in item

When an item was a NET/STREAM type, there was no way to distinguish if the item
was a file, a playlist or directory.

Add a new variable, b_net in addition to i_type. This variable is automatically
set when creating a new Item (set to true for ITEM_TYPE_STREAM). It can be
overridden via the new input_item_NewWithTypeExt function. This new function
will allow accesses to create FILE, or DIRECTORY items with b_net set to true.

Unless forced, the preparser won't parse items with b_net == true.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agoinput: replace ITEM_TYPE_NET by ITEM_TYPE_STREAM
Thomas Guillem [Tue, 24 Mar 2015 16:22:14 +0000 (16:22 +0000)]
input: replace ITEM_TYPE_NET by ITEM_TYPE_STREAM

This type is set for streams (rtsp, httplive, mms...).

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agoContribs: update dvdread to 5.0.3
Jean-Baptiste Kempf [Wed, 25 Mar 2015 14:07:54 +0000 (15:07 +0100)]
Contribs: update dvdread to 5.0.3

9 years agodvdnav: add Demux submodule
Thomas Guillem [Wed, 25 Mar 2015 13:41:06 +0000 (14:41 +0100)]
dvdnav: add Demux submodule

It allows to use dvdnav via a VLC access using new dvdnav stream callbacks.

When using a VLC access, dvdnav readahead flag is disabled in order to read
small chunk of data from pf_demux (that is 2kB).

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agodemux: ts: remove pid array
Francois Cartegnie [Tue, 24 Mar 2015 19:57:07 +0000 (20:57 +0100)]
demux: ts: remove pid array

Few PID in the whole range are really used.
Minus pointers and alignment, should save ~320KBytes
in most cases.

9 years agodirect3d11: support more pixel formats
Steve Lhomme [Tue, 24 Mar 2015 08:47:27 +0000 (08:47 +0000)]
direct3d11: support more pixel formats

list of possible formats https://msdn.microsoft.com/en-us/library/windows/desktop/bb173059%28v=vs.85%29.aspx

the ones marked BROKEN_PIXEL are not writing pixels properly, not knowing much
about pixel shaders, I'm not the best qualified to handle this

the ones marked UNTESTED means my Win8 machine doesn't support them

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agoContrib: allow building contribs with no optimization
Steve Lhomme [Tue, 24 Mar 2015 09:17:37 +0000 (09:17 +0000)]
Contrib: allow building contribs with no optimization

--
uses the same flag logic as --disable-gpl

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agodirect3d11: catch texture mapping errors
Steve Lhomme [Tue, 24 Mar 2015 12:00:54 +0000 (13:00 +0100)]
direct3d11: catch texture mapping errors

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agoD3D11: use defines for DXGI
Jean-Baptiste Kempf [Tue, 24 Mar 2015 15:03:10 +0000 (16:03 +0100)]
D3D11: use defines for DXGI

9 years agoDirect3D11: rework Open function
Jean-Baptiste Kempf [Tue, 24 Mar 2015 14:54:51 +0000 (15:54 +0100)]
Direct3D11: rework Open function

9 years agoImproved recognition of selected bookmarks for deletion.
Eugen Geist [Mon, 23 Mar 2015 17:35:55 +0000 (17:35 +0000)]
Improved recognition of selected bookmarks for deletion.

Removed FIXME annotation and fixed the recognition of selected rows in
bookmarklist.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agomediacodec: fix warning
Thomas Guillem [Tue, 24 Mar 2015 09:34:58 +0000 (10:34 +0100)]
mediacodec: fix warning

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agomediacodec: Fix freeze when seeking on pause
Thomas Guillem [Tue, 24 Mar 2015 09:34:57 +0000 (10:34 +0100)]
mediacodec: Fix freeze when seeking on pause

See FIXME comment.

Fixes #12397

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agomediacodec: skip prerolled frames
Thomas Guillem [Tue, 24 Mar 2015 09:34:56 +0000 (10:34 +0100)]
mediacodec: skip prerolled frames

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agomediacodec: don't loop in GetOutput
Thomas Guillem [Tue, 24 Mar 2015 09:34:55 +0000 (10:34 +0100)]
mediacodec: don't loop in GetOutput

DecodeVideo is already looping.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agomediacodec: factorize release_output_buffer
Thomas Guillem [Tue, 24 Mar 2015 09:34:54 +0000 (10:34 +0100)]
mediacodec: factorize release_output_buffer

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agomediacodec: handle error_state in one place
Thomas Guillem [Tue, 24 Mar 2015 09:34:53 +0000 (10:34 +0100)]
mediacodec: handle error_state in one place

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agomediacodec: process input buffers in only one place
Thomas Guillem [Tue, 24 Mar 2015 09:34:52 +0000 (10:34 +0100)]
mediacodec: process input buffers in only one place

(behavior not changed)

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agodemux: avi: improve broken index offset heuristic (fix #14120)
Francois Cartegnie [Mon, 23 Mar 2015 22:38:12 +0000 (23:38 +0100)]
demux: avi: improve broken index offset heuristic (fix #14120)

Avoids using movi position as offset when the broken index refers
to beginning of file and the first sample size is exactly movi's
offset.

9 years agoudp: fix locking (fixes #14234) and cancellation
Rémi Denis-Courmont [Mon, 23 Mar 2015 21:31:53 +0000 (23:31 +0200)]
udp: fix locking (fixes #14234) and cancellation

9 years agoenable the macosx GUI to handle negative stop-time
Aleksandr Pasechnik [Sat, 21 Mar 2015 00:51:46 +0000 (20:51 -0400)]
enable the macosx GUI to handle negative stop-time

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
9 years agodirect3d11: implement the pixel format fallback
Steve Lhomme [Mon, 23 Mar 2015 14:15:47 +0000 (15:15 +0100)]
direct3d11: implement the pixel format fallback

NV12 is not supported in Windows 7 [1] so we need to fallback to RGBA

1: https://msdn.microsoft.com/en-us/library/windows/desktop/bb173059%28v=vs.85%29.aspx#DXGI_FORMAT_NV12

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agodirect3d11: don't crash when exiting with an error
Steve Lhomme [Mon, 23 Mar 2015 15:04:57 +0000 (16:04 +0100)]
direct3d11: don't crash when exiting with an error

It happens when opening the D3D11 device fails

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agodirect3d11: code cleaning and typos
Steve Lhomme [Mon, 23 Mar 2015 15:18:59 +0000 (16:18 +0100)]
direct3d11: code cleaning and typos

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agodirect3d11: D3D11_CREATE_DEVICE_DEBUG requires VisualStudio or Windows SDK
Steve Lhomme [Mon, 23 Mar 2015 16:30:40 +0000 (17:30 +0100)]
direct3d11: D3D11_CREATE_DEVICE_DEBUG requires VisualStudio or Windows SDK

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agodemux: ts: only interpolate PCR on missing PCR
Francois Cartegnie [Mon, 23 Mar 2015 14:57:48 +0000 (15:57 +0100)]
demux: ts: only interpolate PCR on missing PCR

Because if the PCR exists and has an offset,
the first PCR update will be interpolated
and no following pcr/dts offset fixup will
work without delaying playback by the
real - interpolated pcr.

9 years agodemux: ts: correctly update current chain when dequeuing
Francois Cartegnie [Sun, 22 Mar 2015 22:47:12 +0000 (23:47 +0100)]
demux: ts: correctly update current chain when dequeuing

9 years agoUpnp: remove trailing space
Jean-Baptiste Kempf [Mon, 23 Mar 2015 13:57:50 +0000 (14:57 +0100)]
Upnp: remove trailing space

9 years agoLUA is still GPLv2+
Jean-Baptiste Kempf [Mon, 23 Mar 2015 13:57:03 +0000 (14:57 +0100)]
LUA is still GPLv2+

9 years agoRemove bonjour in access_output
Jean-Baptiste Kempf [Mon, 23 Mar 2015 13:48:49 +0000 (14:48 +0100)]
Remove bonjour in access_output

It's a great idea, but not the best implementation and broken since a
long time.

9 years agodirect3d11: give enough room for the \0 in the string
Steve Lhomme [Mon, 23 Mar 2015 09:28:52 +0000 (10:28 +0100)]
direct3d11: give enough room for the \0 in the string

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agoQt is GPLv2+
Jean-Baptiste Kempf [Mon, 23 Mar 2015 09:56:15 +0000 (10:56 +0100)]
Qt is GPLv2+

9 years agovpx: fix leak
Tristan Matthews [Sun, 22 Mar 2015 22:01:26 +0000 (18:01 -0400)]
vpx: fix leak

9 years agoRSS: remove no-op
Tristan Matthews [Sun, 22 Mar 2015 21:48:21 +0000 (17:48 -0400)]
RSS: remove no-op

"end" label is only reached if psz_eltname is NULL.

9 years agoshine: avoid double free
Tristan Matthews [Sun, 22 Mar 2015 21:42:19 +0000 (17:42 -0400)]
shine: avoid double free

If subsequent malloc or realloc failed, free would be called on a dangling
pointer.

9 years agoaccess: archive: remove dead initialization
Tristan Matthews [Sun, 22 Mar 2015 21:15:49 +0000 (17:15 -0400)]
access: archive: remove dead initialization

9 years agoblock_helper: remove dead assignments
Tristan Matthews [Sun, 22 Mar 2015 21:13:45 +0000 (17:13 -0400)]
block_helper: remove dead assignments

9 years agomacosx: video effects: fix threshold checkbox visibility
David Fuhrmann [Sun, 22 Mar 2015 20:52:16 +0000 (21:52 +0100)]
macosx: video effects: fix threshold checkbox visibility

9 years agodecoder: fix race / incorrect assertion
Rémi Denis-Courmont [Sun, 22 Mar 2015 20:04:27 +0000 (22:04 +0200)]
decoder: fix race / incorrect assertion

9 years agowasapi: add loopback mode
Rémi Denis-Courmont [Sun, 22 Mar 2015 12:31:39 +0000 (14:31 +0200)]
wasapi: add loopback mode

9 years agowasapi: audio capture client module (fixes #7205)
Rémi Denis-Courmont [Sun, 2 Mar 2014 15:04:35 +0000 (17:04 +0200)]
wasapi: audio capture client module (fixes #7205)

9 years agopuzzle: fix error check, do not leak pictures on error
David Fuhrmann [Sun, 22 Mar 2015 18:02:28 +0000 (19:02 +0100)]
puzzle: fix error check, do not leak pictures on error

close #14006

9 years agoReal RTSP: discard unsupported legacy username and password syntax
Rémi Denis-Courmont [Sun, 22 Mar 2015 17:58:21 +0000 (19:58 +0200)]
Real RTSP: discard unsupported legacy username and password syntax

This is better than leaking them to the DNS resolver. This also avoids
confusing error messages if live555 is missing or failing.

9 years agomux: mp4: handle box/bo failed alloc/realloc
Francois Cartegnie [Sun, 22 Mar 2015 15:18:20 +0000 (16:18 +0100)]
mux: mp4: handle box/bo failed alloc/realloc

refs #14193

9 years agomux: avi: handle failed reallocs
Francois Cartegnie [Sat, 21 Mar 2015 18:29:35 +0000 (19:29 +0100)]
mux: avi: handle failed reallocs

refs #14193

9 years agomux: avi: don't try to delete failed stream
Francois Cartegnie [Sat, 21 Mar 2015 18:27:53 +0000 (19:27 +0100)]
mux: avi: don't try to delete failed stream

9 years agomux: avi: fix leak on format failure
Francois Cartegnie [Sat, 21 Mar 2015 17:48:06 +0000 (18:48 +0100)]
mux: avi: fix leak on format failure

9 years agovlc_bits: use vlc_common and guards against failed realloc
Francois Cartegnie [Sat, 21 Mar 2015 14:08:16 +0000 (15:08 +0100)]
vlc_bits: use vlc_common and guards against failed realloc

refs #14193

9 years agodecoder: reduce lock scope and cosmetic
Rémi Denis-Courmont [Sat, 21 Mar 2015 20:19:13 +0000 (22:19 +0200)]
decoder: reduce lock scope and cosmetic

p_owner->b_paused can only be written by the owner, so the owner thread
does not need to lock to read it. (However, locking is necessary to
write it from the owner thread, or to read it from the decoder thread.)

9 years agoaout: remove aout_DecIsEmpty()
Rémi Denis-Courmont [Sat, 21 Mar 2015 20:02:42 +0000 (22:02 +0200)]
aout: remove aout_DecIsEmpty()

9 years agodecoder: drain the audio output properly
Rémi Denis-Courmont [Sat, 21 Mar 2015 19:59:58 +0000 (21:59 +0200)]
decoder: drain the audio output properly

9 years agoaout: add wait parameter to aout_DecFlush()
Rémi Denis-Courmont [Sat, 21 Mar 2015 19:56:50 +0000 (21:56 +0200)]
aout: add wait parameter to aout_DecFlush()

9 years agodecoder: cosmetic changes
Rémi Denis-Courmont [Sat, 21 Mar 2015 19:58:53 +0000 (21:58 +0200)]
decoder: cosmetic changes

9 years agodecoder: inline DecoderSignalWait()
Rémi Denis-Courmont [Sat, 21 Mar 2015 18:38:12 +0000 (20:38 +0200)]
decoder: inline DecoderSignalWait()

9 years agodecoder: do not mix and match condidition variable and mutex pairings
Rémi Denis-Courmont [Sat, 21 Mar 2015 18:43:33 +0000 (20:43 +0200)]
decoder: do not mix and match condidition variable and mutex pairings

9 years agodecoder: do not wait for buffering when there is no data
Rémi Denis-Courmont [Sat, 21 Mar 2015 18:16:35 +0000 (20:16 +0200)]
decoder: do not wait for buffering when there is no data

This removes small hacks surrounding this corner case.

9 years agodecoder: remove BLOCK_FLAG_CORE_EOS
Rémi Denis-Courmont [Sat, 21 Mar 2015 18:06:26 +0000 (20:06 +0200)]
decoder: remove BLOCK_FLAG_CORE_EOS

Do not rely on allocating a block for draining the decoder and output.

9 years agofifo: fix FIFO bytes size computation
Rémi Denis-Courmont [Sat, 21 Mar 2015 18:23:01 +0000 (20:23 +0200)]
fifo: fix FIFO bytes size computation

9 years agodecoder: remove unnecessary special case
Rémi Denis-Courmont [Sat, 21 Mar 2015 17:47:18 +0000 (19:47 +0200)]
decoder: remove unnecessary special case

All audio decoders support the *pp_block == NULL case, and return NULL.
This enables audio decoders to drain cleanly.

9 years agodecoder: simplify audio path
Rémi Denis-Courmont [Sat, 21 Mar 2015 17:29:55 +0000 (19:29 +0200)]
decoder: simplify audio path

DecoderPlayAudio() has no effects with a NULL block.

9 years agomacosx: fix main menu initialization order on startup
David Fuhrmann [Sat, 21 Mar 2015 17:30:21 +0000 (18:30 +0100)]
macosx: fix main menu initialization order on startup

MainMenus p_intf can be already accessed before
applicationWillFinishLaunching was called.

This should fix quite some crashes reported by the users.

9 years agoes_out: use input_DecoderDrain()
Rémi Denis-Courmont [Sat, 21 Mar 2015 17:09:45 +0000 (19:09 +0200)]
es_out: use input_DecoderDrain()

9 years agodecoder: add input_DecoderDrain()
Rémi Denis-Courmont [Sat, 21 Mar 2015 17:09:31 +0000 (19:09 +0200)]
decoder: add input_DecoderDrain()

9 years agomacosx: fix wrong ref counting in media info
David Fuhrmann [Sat, 21 Mar 2015 17:04:09 +0000 (18:04 +0100)]
macosx: fix wrong ref counting in media info

9 years agodecoder: factor some common code into DecoderUpdateFormatLocked()
Rémi Denis-Courmont [Sat, 21 Mar 2015 17:00:57 +0000 (19:00 +0200)]
decoder: factor some common code into DecoderUpdateFormatLocked()

9 years agodecoder: reorder to avoid forward declation, no functional changes
Rémi Denis-Courmont [Sat, 21 Mar 2015 16:25:03 +0000 (18:25 +0200)]
decoder: reorder to avoid forward declation, no functional changes

9 years agodecoder: fix data race in sout
Rémi Denis-Courmont [Sat, 21 Mar 2015 16:10:38 +0000 (18:10 +0200)]
decoder: fix data race in sout

9 years agodecoder: merge b_exit into b_flushing
Rémi Denis-Courmont [Sat, 21 Mar 2015 15:48:07 +0000 (17:48 +0200)]
decoder: merge b_exit into b_flushing

There is nothing special about exiting at this level. The decoder
should discard its buffers and return to reading the input FIFO at the
earliest (where it gets canceled). This is the same as flushing.

9 years agodecoder: fix data race in input_DecoderChangePause()
Rémi Denis-Courmont [Sat, 21 Mar 2015 16:03:33 +0000 (18:03 +0200)]
decoder: fix data race in input_DecoderChangePause()

See also 0fde3beaa85528e555bac9c1b327ba5a32da67e9.

9 years agodecoder: fix data race in input_DecoderFrameNext()
Rémi Denis-Courmont [Sat, 21 Mar 2015 15:59:20 +0000 (17:59 +0200)]
decoder: fix data race in input_DecoderFrameNext()

See also 0fde3beaa85528e555bac9c1b327ba5a32da67e9.

9 years agoes_out: do not start buffering when already buferring
Rémi Denis-Courmont [Sat, 21 Mar 2015 15:58:27 +0000 (17:58 +0200)]
es_out: do not start buffering when already buferring

This fixes an assertion failure.
Regression from 621400186a49b282197267e588a030b425829a64.

9 years agodecoder: add input_DecoderFlush()
Rémi Denis-Courmont [Sat, 21 Mar 2015 15:57:46 +0000 (17:57 +0200)]
decoder: add input_DecoderFlush()

9 years agomacosx: Update progress dialog on the main thread, make check thread safe
David Fuhrmann [Sat, 21 Mar 2015 16:31:20 +0000 (17:31 +0100)]
macosx: Update progress dialog on the main thread, make check thread safe

This should fix some crashes as reported by the users.

9 years agovlc_plugin: fix non-LGPL plugins meta infos
Rémi Denis-Courmont [Sat, 21 Mar 2015 12:15:22 +0000 (14:15 +0200)]
vlc_plugin: fix non-LGPL plugins meta infos

9 years agovlc_plugin: allow overriding module meta-infos
Rémi Denis-Courmont [Sat, 21 Mar 2015 11:42:56 +0000 (13:42 +0200)]
vlc_plugin: allow overriding module meta-infos

9 years agodirectsound: fix TimeGet returning a positive value on error
Steve Lhomme [Thu, 19 Mar 2015 12:08:12 +0000 (12:08 +0000)]
directsound: fix TimeGet returning a positive value on error

Fixes #14186

a positive HRESULT means it succeeded.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agoAdded forward and rewind (30s) buttons to mobile HTTP remote control
Carlos Fenollosa [Wed, 18 Mar 2015 17:43:23 +0000 (18:43 +0100)]
Added forward and rewind (30s) buttons to mobile HTTP remote control

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agodecoder: fix race in spu_new_buffer
Thomas Guillem [Wed, 18 Mar 2015 09:16:44 +0000 (09:16 +0000)]
decoder: fix race in spu_new_buffer

There is a race when starting video with subtitles at a given position (via
--start-time).

If all decoders are flushed early, the video decoder may not have created the
Vout via the decoder_NewPicture call. In that case, spu_new_buffer will be
blocking for 6 seconds. Indeed, spu_new_buffer can block for maximum 6 seconds
when it's waiting for a Vout.

To solve this race, abort spu_new_buffer if decoder is flushing.

How to reproduce the race condition:
./vlc --start-time 3600 <video_with_subtitles>

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agoUpdate bookmark list before showing dialog.
Eugen Geist [Thu, 19 Mar 2015 16:57:05 +0000 (16:57 +0000)]
Update bookmark list before showing dialog.

Fixes #2100.

Override toggleVisible of BookmarkDialog to call update before using toggleVisible of QVLCFrame

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agolibass: use the visible area dimensions, not the input dimensions
Steve Lhomme [Fri, 20 Mar 2015 08:07:05 +0000 (08:07 +0000)]
libass: use the visible area dimensions, not the input dimensions

Fixes incorrect offset when playing http://streams.videolan.org/misc/test-files-ccc/vsfilter_general_TestCase.mkv

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agofix teletext framing code in DVB PES packets ignored
Miha Sokolov [Fri, 20 Mar 2015 09:38:51 +0000 (09:38 +0000)]
fix teletext framing code in DVB PES packets ignored

Check the teletext framing code in PES buffer for each of the received lines
and only copy those with correct framing code (p_block->p_buffer[3]) to the
p_sliced buffer that is later forwarded to ZVBI vbi_decode. Invalid lines
will not reach vbi_decode anymore.

When also packets with erroneous framing code are sent to vbi_decode (often
0x00 with some noise), in most cases those are decoded as packet 1/2,
causing the second text line on the teletext page to be overwritten with
spaces. So we need to avoid sending such packets with invalid framing code
to vbi_decode.

Close #14191

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years agoWin32: don't call setsockopt if compiling for Windows 8.0
Jean-Baptiste Kempf [Fri, 20 Mar 2015 14:47:04 +0000 (15:47 +0100)]
Win32: don't call setsockopt if compiling for Windows 8.0

9 years agoudp: adjust receive buffer for windows 7 and earlier
Ilkka Ollakka [Thu, 19 Mar 2015 06:52:30 +0000 (08:52 +0200)]
udp: adjust receive buffer for windows 7 and earlier

Try to detect runtime what windows version it is running to see if
receive buffers should be increased or leave to OS handling.
Fixes #14200

9 years agoALSA: request large enough buffers first (refs #10422)
Rémi Denis-Courmont [Thu, 19 Mar 2015 21:51:21 +0000 (23:51 +0200)]
ALSA: request large enough buffers first (refs #10422)

With the current input clock and decoder buffering code, getting large
buffers is essential. So favor that over having short audio periods.
(Ideally the audio period should probably be an half or a third of the
PTS delay, rather than hard-coded to 40 ms, but that is a separate
issue).

9 years agovlc_bits.h: drop len field
Francois Cartegnie [Thu, 19 Mar 2015 17:57:44 +0000 (18:57 +0100)]
vlc_bits.h: drop len field

9 years agomux: mp4: vlc_bits regression (fix #14192)
Francois Cartegnie [Thu, 19 Mar 2015 18:00:36 +0000 (19:00 +0100)]
mux: mp4: vlc_bits regression (fix #14192)

commit 6c9bc13fca989feca53a1ccdd609d6c6995a3879

9 years agoplaylist: remove activity callback in favor of input-current
Rémi Denis-Courmont [Thu, 19 Feb 2015 22:11:23 +0000 (00:11 +0200)]
playlist: remove activity callback in favor of input-current

9 years agoplaylist: move input-current, fix race
Rémi Denis-Courmont [Thu, 19 Mar 2015 18:10:12 +0000 (20:10 +0200)]
playlist: move input-current, fix race

See also a6b259b733a0ba0c064377cf07b5bd0c33584b17.

9 years agoblock: remove block_FifoPace()
Rémi Denis-Courmont [Tue, 17 Mar 2015 18:08:02 +0000 (20:08 +0200)]
block: remove block_FifoPace()

9 years agodecoder: avoid block_FifoPace(), fix races
Rémi Denis-Courmont [Wed, 18 Mar 2015 23:04:50 +0000 (01:04 +0200)]
decoder: avoid block_FifoPace(), fix races