]> git.sesse.net Git - vlc/log
vlc
11 years agognutls: retry handshake if it returns a non-fatal error
Ludovic Fauvet [Thu, 7 Feb 2013 16:21:06 +0000 (17:21 +0100)]
gnutls: retry handshake if it returns a non-fatal error

Based on the gnutls_handshake manual the function must be called again
until it returns 0 (or a fatal error).

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
11 years agoaudioqueue: fix buffer leak (close #8140)
Felix Paul Kühne [Fri, 8 Feb 2013 09:40:51 +0000 (10:40 +0100)]
audioqueue: fix buffer leak (close #8140)

11 years agoauhal: fix prototype/definition mismatch (close #8148)
Felix Paul Kühne [Fri, 8 Feb 2013 09:32:23 +0000 (10:32 +0100)]
auhal: fix prototype/definition mismatch (close #8148)

11 years agoGestures: use left button, by default
Ludovic Fauvet [Thu, 7 Feb 2013 18:54:58 +0000 (19:54 +0100)]
Gestures: use left button, by default

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
11 years agoGestures: use the proper event name
Ludovic Fauvet [Thu, 7 Feb 2013 18:46:05 +0000 (19:46 +0100)]
Gestures: use the proper event name

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
11 years agomacosx: replace all 'key-action' calls with their proper counter-parts
Felix Paul Kühne [Thu, 7 Feb 2013 18:15:15 +0000 (19:15 +0100)]
macosx: replace all 'key-action' calls with their proper counter-parts

This excludes 'ACTIONID_POSITION' for which there doesn't seem to be a replacement.

11 years agoavi: Fix seek bar position when streaming through network (fixes #2151)
Samuel Pitoiset [Tue, 21 Aug 2012 17:48:37 +0000 (17:48 +0000)]
avi: Fix seek bar position when streaming through network (fixes #2151)

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
11 years agoQt: Add moving main window on any part of a window
Alexander Terentyev [Wed, 5 Dec 2012 00:00:04 +0000 (11:00 +1100)]
Qt: Add moving main window on any part of a window

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
11 years agostream: Fix segfault caused by invalid seek
Rafaël Carré [Tue, 5 Feb 2013 22:58:47 +0000 (23:58 +0100)]
stream: Fix segfault caused by invalid seek

Sample can be found on https://www.dropbox.com/s/cd56gjk4ablimp5/A_lawnmower.wmv
md5: d87c039c304b41cc30bddfe21e88af36

11 years agolua: assembleenationale: Fix after website changes
François Revol [Sat, 2 Feb 2013 23:35:18 +0000 (00:35 +0100)]
lua: assembleenationale: Fix after website changes

Base urls not probed correctly yet, but hardcoded, I'm too lazy right now.

Parse direct.js some more to get stream name lists.

Fix the live streams list check.

Signed-off-by: François Revol <revol@free.fr>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
11 years agofix regression from 3118035
Sébastien Escudier [Thu, 7 Feb 2013 11:12:16 +0000 (12:12 +0100)]
fix regression from 3118035
Closes #8076

11 years agofix regression from 1925313da2 : vod creation failed in rtp stream out module because...
Sébastien Escudier [Thu, 7 Feb 2013 10:07:48 +0000 (11:07 +0100)]
fix regression from 1925313da2 : vod creation failed in rtp stream out module because it couldn't access some variable (vod-media and vod-session)

11 years agodbus: Oops, abandon the correct container on error paths
Mirsal Ennaime [Thu, 7 Feb 2013 03:18:12 +0000 (04:18 +0100)]
dbus: Oops, abandon the correct container on error paths

11 years agodbus: Add another memory allocation failure check
Mirsal Ennaime [Thu, 7 Feb 2013 02:54:11 +0000 (03:54 +0100)]
dbus: Add another memory allocation failure check

11 years agoTAB_FIND/TAB_REMOVE: remove inner variable, improve expansion safety
Rémi Denis-Courmont [Wed, 6 Feb 2013 18:56:02 +0000 (20:56 +0200)]
TAB_FIND/TAB_REMOVE: remove inner variable, improve expansion safety

11 years agodbus: Add memory allocation failure check
Mirsal Ennaime [Wed, 6 Feb 2013 14:16:26 +0000 (15:16 +0100)]
dbus: Add memory allocation failure check

11 years agoRemove aout_Packet from directsound audio output
Denis Charmet [Mon, 4 Feb 2013 21:42:23 +0000 (22:42 +0100)]
Remove aout_Packet from directsound audio output

11 years agoContribs: update dvdread to a new fork
Jean-Baptiste Kempf [Tue, 5 Feb 2013 18:59:38 +0000 (19:59 +0100)]
Contribs: update dvdread to a new fork

11 years agorename configuration page title for x264 options
Vittorio Giovara [Tue, 5 Feb 2013 18:39:47 +0000 (19:39 +0100)]
rename configuration page title for x264 options

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
11 years agoContrib: use a new DVDnav fork
Jean-Baptiste Kempf [Tue, 5 Feb 2013 18:24:02 +0000 (19:24 +0100)]
Contrib: use a new DVDnav fork

Should close #8125

11 years agoWin32: really fix poll() loop *cough* *cough*
Rémi Denis-Courmont [Tue, 5 Feb 2013 17:55:29 +0000 (19:55 +0200)]
Win32: really fix poll() loop *cough* *cough*

11 years agodbus: Add missing memory allocation failure handling
Mirsal Ennaime [Fri, 1 Feb 2013 17:25:45 +0000 (18:25 +0100)]
dbus: Add missing memory allocation failure handling

Handle memory allocation failures when sending the PropertyChanged
signal in the TrackList interface implementation.

11 years agodbus: Remove useless comment
Mirsal Ennaime [Fri, 1 Feb 2013 16:18:29 +0000 (17:18 +0100)]
dbus: Remove useless comment

11 years agodbus: Fix memleaks on error paths
Mirsal Ennaime [Fri, 1 Feb 2013 16:17:59 +0000 (17:17 +0100)]
dbus: Fix memleaks on error paths

11 years agomacosx: work-around for Mountain Lion which treats folder with the name 'BDMV' and...
Felix Paul Kühne [Tue, 5 Feb 2013 00:00:46 +0000 (01:00 +0100)]
macosx: work-around for Mountain Lion which treats folder with the name 'BDMV' and the sub item 'INDEX.BDM' as a file with the UTI 'public.directory'

11 years agoaudioqueue: fix compilation for OSX
Felix Paul Kühne [Mon, 4 Feb 2013 23:06:19 +0000 (00:06 +0100)]
audioqueue: fix compilation for OSX

11 years agoaudioqueue: use the AudioSession API to overwrite the mute switch during media playba...
Felix Paul Kühne [Mon, 4 Feb 2013 22:50:27 +0000 (23:50 +0100)]
audioqueue: use the AudioSession API to overwrite the mute switch during media playback (iOS only)

11 years agoaudioqueue: fix potential p_block leak
Felix Paul Kühne [Mon, 4 Feb 2013 22:03:09 +0000 (23:03 +0100)]
audioqueue: fix potential p_block leak

11 years agoaudioqueue: more cleanup
Felix Paul Kühne [Mon, 4 Feb 2013 21:48:50 +0000 (22:48 +0100)]
audioqueue: more cleanup

repack a struct and rename variables so they actually make sense

11 years agoaudioqueue: switch from section comments to more useful pragma marks since those...
Felix Paul Kühne [Mon, 4 Feb 2013 19:51:41 +0000 (20:51 +0100)]
audioqueue: switch from section comments to more useful pragma marks since those are recognized by Xcode

11 years agoaudioqueue: fix copyright years and add missing copyright holders
Felix Paul Kühne [Mon, 4 Feb 2013 19:07:03 +0000 (20:07 +0100)]
audioqueue: fix copyright years and add missing copyright holders

11 years agoaudioqueue: clean-up
Felix Paul Kühne [Mon, 4 Feb 2013 18:58:31 +0000 (19:58 +0100)]
audioqueue: clean-up

11 years agoaudioqueue: fixed potential TimeGet issue
Rafaël Carré [Mon, 4 Feb 2013 18:35:23 +0000 (19:35 +0100)]
audioqueue: fixed potential TimeGet issue

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
11 years agoNEWS: updates for Mac
Felix Paul Kühne [Mon, 4 Feb 2013 18:05:55 +0000 (19:05 +0100)]
NEWS: updates for Mac

11 years agowin32: do not get stuck in poll() with infinite timeout
Rémi Denis-Courmont [Mon, 4 Feb 2013 17:14:33 +0000 (19:14 +0200)]
win32: do not get stuck in poll() with infinite timeout

This really should be fixed more properly.

11 years agolibvlc_audio_set_track: return -1 on error
Rémi Denis-Courmont [Mon, 4 Feb 2013 16:38:04 +0000 (18:38 +0200)]
libvlc_audio_set_track: return -1 on error

Surprisingly, my gcc did not generate a possible unitilization warning.

11 years agolive555: buffer sizes are not considered safe
Rémi Denis-Courmont [Mon, 4 Feb 2013 16:26:06 +0000 (18:26 +0200)]
live555: buffer sizes are not considered safe

...so far.

11 years agoaudioqueue: don't avoid impossible case
Rafaël Carré [Mon, 4 Feb 2013 16:13:17 +0000 (17:13 +0100)]
audioqueue: don't avoid impossible case

Play() should always be fed with valid block_t *

11 years agoomxil: Remove a few audio codec mappings
Martin Storsjö [Mon, 4 Feb 2013 14:19:17 +0000 (16:19 +0200)]
omxil: Remove a few audio codec mappings

This reverts most of 2b101ff4a0.

VLC_CODEC_MP3 seems to work fine with multiple OMX mp3 decoders,
so keep it mapped.

VLC_CODEC_MPGA does work with some OMX mp3 decoders (OMX.SEC.mp3.dec
seems to handle it) but not with all (OMX.google.mp3.decoder doesn't
seem to handle it).

Vorbis does not work with OMX decoders in the current form. The only
such decoder I've seen is OMX.google.vorbis.decoder, and using it
requires us to modify the packets sent a little. Even if this can be
done pretty easily, the packet format feels more like an android
internal hack than an official spec of any sort, so disable this
mapping since there isn't much value in using it currently.

WMA does not work with OMX in the current form (tested with
OMX.SEC.wma.dec). I've got work in progress code that makes certain
WMA files work with it, but not all, so disable it until at least
most of them work properly.

11 years agolive555 : Add an option to change the frame buffer size, and increase the default...
Sébastien Escudier [Mon, 4 Feb 2013 11:02:27 +0000 (12:02 +0100)]
live555 : Add an option to change the frame buffer size, and increase the default value a little.
Closes #8103

11 years agoNEWS: announce that the infamous audio output failure on TASCAM's USD-based MIDI...
Felix Paul Kühne [Sun, 3 Feb 2013 20:32:58 +0000 (21:32 +0100)]
NEWS: announce that the infamous audio output failure on TASCAM's USD-based MIDI-interfaces is fixed

11 years agomacosx: fixed compilation warning and potential runtime exception
Felix Paul Kühne [Sun, 3 Feb 2013 20:05:23 +0000 (21:05 +0100)]
macosx: fixed compilation warning and potential runtime exception

11 years agotoo long timeouts in win32 vlc_poll
Mario Speiß [Sun, 3 Feb 2013 17:25:35 +0000 (19:25 +0200)]
too long timeouts in win32 vlc_poll

When vlc_poll is called with timeout of i.e. 5000ms it may happen that the
waiting time might be as long as 2500s ! Probably poll should be called with
the 50ms timeout as many times until the original provided timeout has been
reached.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
11 years agosrc: Win32: add message categories to debug logs
Edward Wang [Sun, 3 Feb 2013 14:12:04 +0000 (09:12 -0500)]
src: Win32: add message categories to debug logs

Signed-off-by: Rafaël Carré <funman@videolan.org>
11 years agoconfigure: remove a wrongly placed test
KO Myung-Hun [Sun, 3 Feb 2013 09:04:28 +0000 (18:04 +0900)]
configure: remove a wrongly placed test

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
11 years agoomxil: Only try to enable the samsung-specific 420p mode on video decoders
Martin Storsjö [Sat, 2 Feb 2013 17:38:17 +0000 (19:38 +0200)]
omxil: Only try to enable the samsung-specific 420p mode on video decoders

It doesn't make any sense for audio decoders and only leads to
extra log warnings.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoRevert "omxil: Set the WMV type"
Martin Storsjö [Sat, 2 Feb 2013 13:24:20 +0000 (15:24 +0200)]
Revert "omxil: Set the WMV type"

This reverts commit c73e88ce9a79f1b76e7e6a9ec1cf5781555994a5.

The WMV1/2 decoders use a different role name, and this parameter
is unsupported on them. Therefore, there's not much use in trying to
set it at all.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoomxil: Use the role names video_decoder.wmv1/2
Martin Storsjö [Sat, 2 Feb 2013 13:22:32 +0000 (15:22 +0200)]
omxil: Use the role names video_decoder.wmv1/2

The role name without a suffix, "video_decoder.wmv", is only for
vc1/wmv3/9 (on Samsung Galaxy S III at least). Since certain roles
are substrings of others, require the full string to match when looking
for suitable codecs instead of using strncmp.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoomxil: Factorize samsung decoder quirk identification to a separate function
Martin Storsjö [Sat, 2 Feb 2013 14:33:13 +0000 (16:33 +0200)]
omxil: Factorize samsung decoder quirk identification to a separate function

Previously, we tried to see if the samsung decoder name followed
a certain pattern (ending .Decoder, for good decoders, assuming
we should ignore the padding specified by all other samsung
decoders). This simple pattern didn't turn out to apply for some
other deocders, so instead explicitly list the components that
we know we should ignore the specified padding values.

Also refactor the same check from both the omxil and mediacodec
files into one utility function.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoomxil: If OMX_IndexParamVideoInit failed, assume 2 ports with index 0 and 1
Martin Storsjö [Sat, 3 Dec 2011 21:46:04 +0000 (23:46 +0200)]
omxil: If OMX_IndexParamVideoInit failed, assume 2 ports with index 0 and 1

This is required to use the OMX.google.* sw decoder components
(which are useful for testing).

Only do this workaround on android builds for now, to limit the
scope of the hack.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoomxil: Make sure i_channels is nonzero before dividing by it
Martin Storsjö [Fri, 1 Feb 2013 10:53:22 +0000 (12:53 +0200)]
omxil: Make sure i_channels is nonzero before dividing by it

At startup of the decoder, i_channels might be set to 0 if the decoder
hasn't processed the sent CODECCONFIG data yet. (In these cases, the
returned buffers are 0 bytes long so we don't miss anything either.)
A port reconfigure event is sent in these cases, so i_channels gets
initialized to the right value before we handle any later buffers with
actual content.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoomxil: Don't require SetAudioParameters on the decoder output port to succeed
Martin Storsjö [Wed, 11 Apr 2012 16:25:36 +0000 (19:25 +0300)]
omxil: Don't require SetAudioParameters on the decoder output port to succeed

It's mostly enough to call it on the input port, while we later get
back what the decoder itself set on the output port (based on the
input port and codec config data), so if this fails, just ignore it.

This is required for using google SW audio codecs via OMX, which is
useful mostly for testing. (Using them still requires a few more
hacks though.)

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoomxil: Set OMX_AUDIO_AACStreamFormatMP4FF for AAC
Martin Storsjö [Wed, 30 Jan 2013 19:23:45 +0000 (21:23 +0200)]
omxil: Set OMX_AUDIO_AACStreamFormatMP4FF for AAC

This does work with the Samsung AAC decoder (which seems to support
both), while the google SW AAC decoder doesn't support the previous
value (but works fine with this one).

As far as I can read the specs, the two formats are identical (one
is defined as "AAC inside MPEG-4/ISO File Format" while the other
one is defined as "AAC Raw Format (access units)").

The Android media stack seems to be using this one internally
(with a bunch of references to this one, and no references to the
RAW one), which is a good indication that at least most android
AAC decoders should be able to handle it.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoomxil: Set the right channel mode for aac/mp3
Martin Storsjö [Fri, 1 Feb 2013 10:10:26 +0000 (12:10 +0200)]
omxil: Set the right channel mode for aac/mp3

This doesn't seem to have any effect in practice, but it does make
the code more correct.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoomxil: Skip a kinda-broken samsung mp3 decoder
Martin Storsjö [Fri, 1 Feb 2013 09:42:19 +0000 (11:42 +0200)]
omxil: Skip a kinda-broken samsung mp3 decoder

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoRemove the filesize verification when using FindNextElement
Denis Charmet [Fri, 1 Feb 2013 00:39:29 +0000 (01:39 +0100)]
Remove the filesize verification when using FindNextElement

The dummy support patch also fix #5287.

11 years agohotkeys: use only one channel for sliders
Rémi Denis-Courmont [Fri, 1 Feb 2013 16:30:38 +0000 (18:30 +0200)]
hotkeys: use only one channel for sliders

We don't display both sliders at once anyway.

11 years agohotkeys: put all text on the default SPU channel
Rémi Denis-Courmont [Fri, 1 Feb 2013 16:25:21 +0000 (18:25 +0200)]
hotkeys: put all text on the default SPU channel

Never more than one piece of text is displayed at a time anyway.
Also simplify format string handling and use single precision maths.

11 years agolibvlc: use input navigation controls
Rémi Denis-Courmont [Fri, 1 Feb 2013 15:58:31 +0000 (17:58 +0200)]
libvlc: use input navigation controls

11 years agodvdnav: implement navigation controls, remove key-action callback
Rémi Denis-Courmont [Fri, 1 Feb 2013 15:55:17 +0000 (17:55 +0200)]
dvdnav: implement navigation controls, remove key-action callback

11 years agohotkeys: implement navigation actions
Rémi Denis-Courmont [Fri, 1 Feb 2013 15:55:00 +0000 (17:55 +0200)]
hotkeys: implement navigation actions

11 years agoinput: define proper controls for menu navigation
Rémi Denis-Courmont [Fri, 1 Feb 2013 15:54:34 +0000 (17:54 +0200)]
input: define proper controls for menu navigation

11 years agoUpdate default DVD and CD paths on Linux
Rémi Denis-Courmont [Fri, 1 Feb 2013 15:52:32 +0000 (17:52 +0200)]
Update default DVD and CD paths on Linux

11 years agoMpegVideo packetizer: fix frame rates
Jean-Baptiste Kempf [Thu, 31 Jan 2013 21:57:31 +0000 (22:57 +0100)]
MpegVideo packetizer: fix frame rates

11 years agohotkeys: remove special key event
Rémi Denis-Courmont [Thu, 31 Jan 2013 21:25:15 +0000 (23:25 +0200)]
hotkeys: remove special key event

11 years agohotkeys: add context menu action
Rémi Denis-Courmont [Thu, 31 Jan 2013 21:23:55 +0000 (23:23 +0200)]
hotkeys: add context menu action

11 years agohotkeys: map mouse wheel actions in core
Rémi Denis-Courmont [Thu, 31 Jan 2013 21:16:35 +0000 (23:16 +0200)]
hotkeys: map mouse wheel actions in core

11 years agohotkeys: move mouse wheel setting to core with other hotkey stuff
Rémi Denis-Courmont [Thu, 31 Jan 2013 21:16:10 +0000 (23:16 +0200)]
hotkeys: move mouse wheel setting to core with other hotkey stuff

11 years agocore: remove OSD menu keys configuration
Rémi Denis-Courmont [Thu, 31 Jan 2013 21:07:07 +0000 (23:07 +0200)]
core: remove OSD menu keys configuration

11 years agoquartztext: compilation fix
Felix Paul Kühne [Thu, 31 Jan 2013 17:59:54 +0000 (18:59 +0100)]
quartztext: compilation fix

11 years agoRemove unused typedefs
Rémi Denis-Courmont [Thu, 31 Jan 2013 17:48:56 +0000 (19:48 +0200)]
Remove unused typedefs

11 years agoconfigure: remove osdmenu
Rémi Denis-Courmont [Thu, 31 Jan 2013 17:01:14 +0000 (19:01 +0200)]
configure: remove osdmenu

11 years agoosd: remove dead core OSD menu functions
Rémi Denis-Courmont [Thu, 31 Jan 2013 17:00:34 +0000 (19:00 +0200)]
osd: remove dead core OSD menu functions

11 years agoosd_parser/osdmenu: remove dead plugins
Rémi Denis-Courmont [Thu, 31 Jan 2013 16:55:46 +0000 (18:55 +0200)]
osd_parser/osdmenu: remove dead plugins

11 years agoUseless #includes
Rémi Denis-Courmont [Thu, 31 Jan 2013 17:28:36 +0000 (19:28 +0200)]
Useless #includes

11 years agoLua: remove non-working menu object
Rémi Denis-Courmont [Thu, 31 Jan 2013 16:52:40 +0000 (18:52 +0200)]
Lua: remove non-working menu object

11 years agoLua RC: remove non-working menu command
Rémi Denis-Courmont [Thu, 31 Jan 2013 16:54:05 +0000 (18:54 +0200)]
Lua RC: remove non-working menu command

11 years agoOld RC: remove non-working menu command
Rémi Denis-Courmont [Thu, 31 Jan 2013 16:50:19 +0000 (18:50 +0200)]
Old RC: remove non-working menu command

11 years agoLIRC: remove non-working menu
Rémi Denis-Courmont [Thu, 31 Jan 2013 16:54:47 +0000 (18:54 +0200)]
LIRC: remove non-working menu

11 years agohotkeys: remove unused OSD menu actions
Rémi Denis-Courmont [Thu, 31 Jan 2013 16:49:46 +0000 (18:49 +0200)]
hotkeys: remove unused OSD menu actions

11 years agovout: remove dead OSD code
Rémi Denis-Courmont [Thu, 31 Jan 2013 17:09:57 +0000 (19:09 +0200)]
vout: remove dead OSD code

11 years agoosd: privatize osd_ShowText(Absolute|Relative)
Rémi Denis-Courmont [Thu, 31 Jan 2013 16:37:26 +0000 (18:37 +0200)]
osd: privatize osd_ShowText(Absolute|Relative)

(Functions reordered to avoid forward declaration.)

11 years agohotkeys: reorder the Big Switch and remove some useless checks
Rémi Denis-Courmont [Wed, 30 Jan 2013 18:18:49 +0000 (20:18 +0200)]
hotkeys: reorder the Big Switch and remove some useless checks

11 years agovlccore: pass a proper argument to vlc_cancel_self() in vlc_testcancel()
KO Myung-Hun [Wed, 30 Jan 2013 07:34:53 +0000 (16:34 +0900)]
vlccore: pass a proper argument to vlc_cancel_self() in vlc_testcancel()

This fixes the problem that SAP hangs on even if it has been canceled.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
11 years agoconfigure: do not add -fvisibility=hidden flag on OS/2
KO Myung-Hun [Wed, 30 Jan 2013 07:34:50 +0000 (16:34 +0900)]
configure: do not add -fvisibility=hidden flag on OS/2

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
11 years agoAdd option to specify arhitecture variant for building vlc for iOS
Gleb Pinigin [Wed, 30 Jan 2013 13:42:21 +0000 (20:42 +0700)]
Add option to specify arhitecture variant for building vlc for iOS

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
11 years agomediacodec: Handle VC1
Martin Storsjö [Tue, 29 Jan 2013 15:55:10 +0000 (17:55 +0200)]
mediacodec: Handle VC1

This is tested to be working on Galaxy S3 on 4.1.2 (and
on 4.1.1 as well).

(WMV3 doesn't seem to work though, even after reformatting the
extradata as in the omxil decoder, MediaCodec.configure()
throws an exception.)

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
11 years agoomxil: Wait for the right event when deinitializing
Martin Storsjö [Tue, 29 Jan 2013 15:55:09 +0000 (17:55 +0200)]
omxil: Wait for the right event when deinitializing

Previously, we checked that the event queue had an OMX_EventCmdComplete
item, but we didn't make sure that it was for the previously issued
OMX_CommandStateSet. In many cases, it was from a OMX_CommandFlush,
which made the code proceed with other deinitialization. If the decoder
hadn't actually transitioned to idle state yet, the buffers weren't
actually ever freed (in the state == OMX_StateIdle block), which lead
to crashes when the handle was freed at the end.

This fixes crashes when finishing playback of wmv3 videos on Galaxy S3.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
11 years agoomxil: Skip OMX.SEC.WMV.Decoder
Martin Storsjö [Tue, 29 Jan 2013 15:55:08 +0000 (17:55 +0200)]
omxil: Skip OMX.SEC.WMV.Decoder

This one doesn't seem to work for either VC1 or WMV3 at the moment
(on Android 4.1.2 on Galaxy S3), while OMX.SEC.vc1.dec works (for
both codecs).

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
11 years agoomxil: Pass extradata for WMV3 according to OMX specs
Martin Storsjö [Tue, 29 Jan 2013 15:55:07 +0000 (17:55 +0200)]
omxil: Pass extradata for WMV3 according to OMX specs

Some OMX decoders that can handle WMV3 (such as the broadcom one
in raspberry pi) can handle the WMV3 extradata both in the original
form as in ASF, and in this format, while the one in Samsung Galaxy
S3 requires it to be in this format (as the OMX IL 1.2 specs specify).

This makes HW-accelerated WMV3 decoding work on Galaxy S3.

The code can be split out to a reusable function if/when the same
needs to be done elsewhere.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
11 years agomediacodec: Remove an unused variable
Martin Storsjö [Wed, 30 Jan 2013 10:54:08 +0000 (12:54 +0200)]
mediacodec: Remove an unused variable

Signed-off-by: Rafaël Carré <funman@videolan.org>
11 years agoomxil/mediacodec: Extend the quirk workaround for OMX.SEC to ignore horizontal paddin...
Martin Storsjö [Wed, 30 Jan 2013 10:54:07 +0000 (12:54 +0200)]
omxil/mediacodec: Extend the quirk workaround for OMX.SEC to ignore horizontal padding as well

Signed-off-by: Rafaël Carré <funman@videolan.org>
11 years agoomxil: Update the explanation of the OMX.SEC quirk/workaround
Martin Storsjö [Wed, 30 Jan 2013 10:54:06 +0000 (12:54 +0200)]
omxil: Update the explanation of the OMX.SEC quirk/workaround

Signed-off-by: Rafaël Carré <funman@videolan.org>
11 years agomediacodec: Update a comment with the current state of affairs
Martin Storsjö [Wed, 30 Jan 2013 10:54:05 +0000 (12:54 +0200)]
mediacodec: Update a comment with the current state of affairs

Signed-off-by: Rafaël Carré <funman@videolan.org>
11 years agodbus: Add CanGoNext/Previous
Alex Merry [Tue, 29 Jan 2013 00:55:23 +0000 (00:55 +0000)]
dbus: Add CanGoNext/Previous

These are required by the spec.  We just set them to true, to match the
fact that the buttons on the main interface are never disabled.

Signed-off-by: Mirsal Ennaime <mirsal@videolan.org>
11 years agoAdd Properties.GetAll support to all D-Bus interfaces
Alex Merry [Tue, 29 Jan 2013 00:55:22 +0000 (00:55 +0000)]
Add Properties.GetAll support to all D-Bus interfaces

Signed-off-by: Mirsal Ennaime <mirsal@videolan.org>
11 years agodbus: Standardise property getters
Alex Merry [Tue, 29 Jan 2013 00:55:21 +0000 (00:55 +0000)]
dbus: Standardise property getters

There was a lot of repeated code, some of which properly checked return
values and some of which didn't.  This is all replaced and folded into
the GetProperty function of each interface.

A side-effect is that it should be more efficient (we only check the
interface argument once instead of once for each property, and there
should be a smaller overall code size).

Signed-off-by: Mirsal Ennaime <mirsal@videolan.org>
11 years agodbus: Separate out property marshalling code in D-Bus interfaces
Alex Merry [Tue, 29 Jan 2013 00:55:20 +0000 (00:55 +0000)]
dbus: Separate out property marshalling code in D-Bus interfaces

Pull out code to marshal the various properties into separate functions
(and make sure the return type of those functions is int).  This is in
preparation for adding org.freedesktop.DBus.Properties.GetAll support.

Signed-off-by: Mirsal Ennaime <mirsal@videolan.org>
11 years agodbus: Standardise property marshalling for PropertiesChanged signal
Alex Merry [Tue, 29 Jan 2013 00:55:19 +0000 (00:55 +0000)]
dbus: Standardise property marshalling for PropertiesChanged signal

Re-use the AddProperty method (used in GetAllProperties) and use macros
to reduce repetition of code.  Now all the calls should be
error-checked.

Signed-off-by: Mirsal Ennaime <mirsal@videolan.org>
11 years agodbus: Fix code style and add missing decref on error path
Mirsal Ennaime [Tue, 29 Jan 2013 13:40:23 +0000 (14:40 +0100)]
dbus: Fix code style and add missing decref on error path

 * Add missing call to vlc_object_release() in MarshalMetadata
 * Separate code paths with empty lines
 * Fix bracket position in if blocks