]>
git.sesse.net Git - vlc/log
Rémi Denis-Courmont [Sun, 6 Dec 2009 08:16:59 +0000 (10:16 +0200)]
likely, unlikely: convenience portability macros for branch prediction
Those are the same as the Linux kernel macros, and probably a bunch of
other projects. Usage:
if (likely(condition))
branch_likely_taken();
if (unlikely(condition))
branch_unlikely_taken();
Attention: those two macros convert the predicate to a boolean value.
Therefore you generally cannot use them for assignments like this:
void *p_sys = likely (malloc (sizeof (*p_sys)));
if (!p_sys)
return VLC_ENOMEM;
Instead you can do this:
void *p_sys = malloc (sizeof (*p_sys));
if (unlikely (!p_sys))
return VLC_ENOMEM;
Pierre Ynard [Sun, 6 Dec 2009 01:36:15 +0000 (02:36 +0100)]
Add missing include
JP Dinger [Sat, 5 Dec 2009 22:17:09 +0000 (23:17 +0100)]
Obligatory win32 compile fixes.
JP Dinger [Sat, 5 Dec 2009 21:22:20 +0000 (22:22 +0100)]
Add some more assert()s for unchecked malloc().
JP Dinger [Sat, 5 Dec 2009 14:24:19 +0000 (15:24 +0100)]
Replace argument = realloc( argument, size ); with realloc_or_free() in modules/*, and while at it add assert( argument ) to mark unhandled ENOMEM conditions, also for malloc().
JP Dinger [Sat, 5 Dec 2009 08:11:42 +0000 (09:11 +0100)]
Introduce realloc_or_free() to src/*, and add assert() to mark unhandled ENOMEM error conditions. Allocation shrinking or otherwise handled allocations don't need realloc_or_free.
JP Dinger [Sat, 5 Dec 2009 08:06:20 +0000 (09:06 +0100)]
Introduce realloc_or_free(), which does what realloc() does but will free the argument if the reallocation fails. This is useful in some, but not all, use cases of realloc().
JP Dinger [Sat, 28 Nov 2009 18:21:56 +0000 (19:21 +0100)]
Qt4: Save a couple temporaries.
JP Dinger [Sat, 28 Nov 2009 17:21:13 +0000 (18:21 +0100)]
Skins2: cosmetics: Pack repetetive code up in a few macros.
JP Dinger [Sat, 28 Nov 2009 14:08:59 +0000 (15:08 +0100)]
Skins2: Add x11 transparency support. Hope it sets the property on the right Window; didn't have a known transparent skin to test with.
JP Dinger [Tue, 24 Nov 2009 09:42:39 +0000 (10:42 +0100)]
Skins2: Cosmetics and drop const from string return as there really is no point: We're returning a fresh object.
JP Dinger [Mon, 23 Nov 2009 13:11:05 +0000 (14:11 +0100)]
Skins2: Move method bodies with inline tags to before where they're needed. Drop const in favour of static on power() and instead of recursing(!) make it use powf().
JP Dinger [Sun, 22 Nov 2009 18:38:23 +0000 (19:38 +0100)]
skins2: I fail to see why Subject (not Observer) needs to have virtual methods. If you do find a reason do tell. Observer should probably be defined inside Subject instead.
JP Dinger [Sun, 22 Nov 2009 18:06:47 +0000 (19:06 +0100)]
Skins2: Invent ft2_strerror() to improve freetype2 error reporting.
JP Dinger [Sun, 22 Nov 2009 17:13:35 +0000 (18:13 +0100)]
Skins2: Cosmetics.
JP Dinger [Sun, 22 Nov 2009 15:34:36 +0000 (16:34 +0100)]
Skins2: Mostly cosmetics, some C++ style casting, factor out a scroll() in anticipation of figuring out where it belongs.
JP Dinger [Sun, 22 Nov 2009 13:11:38 +0000 (14:11 +0100)]
Skins2: Cosmetics. Add a REGISTER_CMD1 for commands with one argument.
JP Dinger [Sun, 22 Nov 2009 12:41:51 +0000 (13:41 +0100)]
Skins2: Reduce another macro to bare minimum and helper fuction.
JP Dinger [Sun, 22 Nov 2009 11:54:57 +0000 (12:54 +0100)]
Skins2: (Almost entirely) replace another two macros with functions.
JP Dinger [Sat, 21 Nov 2009 22:37:05 +0000 (23:37 +0100)]
Skins2: Cosmetics and the occasional duplicate call elimintation.
JP Dinger [Sat, 21 Nov 2009 20:37:06 +0000 (21:37 +0100)]
Skins2: Cosmetics and make better use of a test that's done anyway.
JP Dinger [Sat, 21 Nov 2009 20:19:28 +0000 (21:19 +0100)]
Skins2: Cosmetic.
JP Dinger [Sat, 21 Nov 2009 18:26:22 +0000 (19:26 +0100)]
Skins2: Replace some theme macros by templated code.
JP Dinger [Sat, 21 Nov 2009 18:22:38 +0000 (19:22 +0100)]
Skins2: Add (and use) template parameter typedefs so that they might be used, say, as function return types. The next commit needs this.
JP Dinger [Sat, 21 Nov 2009 14:57:02 +0000 (15:57 +0100)]
Skins2: Add ptrmap<> to possibly prevent some more empty nodes.
JP Dinger [Sat, 21 Nov 2009 14:30:38 +0000 (15:30 +0100)]
Skins2: Factor out duplicate code (mod), and provide a const accessor to the keymap: std::map<>::operator[] will create empty nodes if they don't exist already.
JP Dinger [Sat, 21 Nov 2009 14:26:52 +0000 (15:26 +0100)]
Skins2: Move getShifts from const to static.
JP Dinger [Sat, 21 Nov 2009 14:24:23 +0000 (15:24 +0100)]
Skins2: Cosmetics.
JP Dinger [Sat, 21 Nov 2009 11:52:58 +0000 (12:52 +0100)]
Skins2: Avoid work by postponing to where and if it is needed.
JP Dinger [Sat, 21 Nov 2009 10:43:25 +0000 (11:43 +0100)]
Skins2: Cosmetics
JP Dinger [Sat, 21 Nov 2009 10:26:16 +0000 (11:26 +0100)]
Skins2: x11_display: Replace PUT_PIXEL and BLEND_PIXEL macros with templates. Could use more testing and possibly more refactoring.
JP Dinger [Fri, 20 Nov 2009 15:01:04 +0000 (16:01 +0100)]
Fix typos (hopefully correctly) and formatting in comment.
JP Dinger [Fri, 20 Nov 2009 15:00:22 +0000 (16:00 +0100)]
Skins2: Drop another small heap allocation in favour of the stack.
JP Dinger [Fri, 20 Nov 2009 14:59:23 +0000 (15:59 +0100)]
Skins2: Factor out repeated code and use var_SetVariant where applicable.
JP Dinger [Tue, 17 Nov 2009 17:13:16 +0000 (18:13 +0100)]
Skins2: Cleanup after merge.
JP Dinger [Mon, 16 Nov 2009 12:51:30 +0000 (13:51 +0100)]
Skins2: Use vlc KEY_MODIFIER_* constants for key modifier masks, simplifying the code. Revert from enum to static const int to not have to include vlc_keys.h through the header file.
JP Dinger [Mon, 16 Nov 2009 12:06:08 +0000 (13:06 +0100)]
Skins2: Use var_SetVariant() some more.
JP Dinger [Mon, 16 Nov 2009 12:01:49 +0000 (13:01 +0100)]
Skins2: Factor out getModKey() and getKeyState() (both used twice), use var_SetVariant() instead of var_Set().
JP Dinger [Mon, 16 Nov 2009 11:56:16 +0000 (12:56 +0100)]
Skins2: No need to new char[] temporaries; use stack instead.
JP Dinger [Sun, 15 Nov 2009 22:24:41 +0000 (23:24 +0100)]
Skins2: Refactor string manipulation event handling a bit and replace some static const members with an enum.
JP Dinger [Fri, 2 Oct 2009 13:09:37 +0000 (15:09 +0200)]
Skins2: Fix a warning; add a forgotten #undef.
JP Dinger [Fri, 2 Oct 2009 08:55:11 +0000 (10:55 +0200)]
Skins2 compile fix: Apparently declarations went missing in merge.
JP Dinger [Sat, 12 Sep 2009 14:36:00 +0000 (16:36 +0200)]
Skins2: Use typedefs for internal template-derived types, and rectify an accidental skip while removing.
JP Dinger [Sat, 12 Sep 2009 15:14:01 +0000 (17:14 +0200)]
Skins2: Cosmetics, 100% pure. We don't indent for labels in C, we don't in C++.
JP Dinger [Tue, 4 Aug 2009 15:32:39 +0000 (17:32 +0200)]
Replace #if XP_SYMBOL with #if defined(XP_SYMBOL) for consistency.
Pierre d'Herbemont [Sat, 5 Dec 2009 15:41:20 +0000 (16:41 +0100)]
macosx/framework: Add video_dirs to the list of MediaDiscoverer by default.
Pierre d'Herbemont [Sat, 5 Dec 2009 15:35:16 +0000 (16:35 +0100)]
shout: Simplify description name.
Pierre d'Herbemont [Thu, 3 Dec 2009 11:12:20 +0000 (12:12 +0100)]
VLCKit: QuickTime doesn't support mp4v but h264 in mp4.
Pierre d'Herbemont [Thu, 3 Dec 2009 11:12:07 +0000 (12:12 +0100)]
VLCKit: fix a leak.
Pierre d'Herbemont [Thu, 3 Dec 2009 11:11:05 +0000 (12:11 +0100)]
libvlc: Fix media discoverer with category.
Rémi Denis-Courmont [Sat, 5 Dec 2009 14:43:05 +0000 (16:43 +0200)]
M3U: some people do use UTF-8 in m3u, revert to autodetect
Rémi Duraffort [Sat, 5 Dec 2009 11:06:25 +0000 (12:06 +0100)]
smem: no need to create the variables as config_ChainParse is already creating them.
Rémi Denis-Courmont [Sat, 5 Dec 2009 10:53:01 +0000 (12:53 +0200)]
Signedness mismatch
Rémi Denis-Courmont [Sat, 5 Dec 2009 10:51:19 +0000 (12:51 +0200)]
Input item type cannot be negative (fix warning)
Rémi Denis-Courmont [Sat, 5 Dec 2009 10:44:59 +0000 (12:44 +0200)]
Order initializers
Rémi Denis-Courmont [Sat, 5 Dec 2009 10:37:59 +0000 (12:37 +0200)]
Unused variable
Rémi Denis-Courmont [Sat, 5 Dec 2009 10:32:47 +0000 (12:32 +0200)]
Unused variables
Rémi Denis-Courmont [Sat, 5 Dec 2009 10:07:51 +0000 (12:07 +0200)]
imem requires -lm
Rémi Duraffort [Fri, 4 Dec 2009 18:41:28 +0000 (19:41 +0100)]
smem: use config_ChainParse for configuration.
Jean-Baptiste Kempf [Fri, 4 Dec 2009 13:58:09 +0000 (14:58 +0100)]
Contribs: projectM depends on glew
Rémi Duraffort [Fri, 4 Dec 2009 13:19:19 +0000 (14:19 +0100)]
Really kill reallocations.
Jean-Baptiste Kempf [Fri, 4 Dec 2009 13:08:06 +0000 (14:08 +0100)]
Qt: make the search box take less space.
Konstantin Pavlov [Fri, 4 Dec 2009 12:07:27 +0000 (15:07 +0300)]
Contribs: update libpng-osx.patch.
Jean-Baptiste Kempf [Fri, 4 Dec 2009 11:57:25 +0000 (12:57 +0100)]
Win32 Contribs: now with CDDB, SQLite3 and projectM
Srikanth Raju [Mon, 30 Nov 2009 08:58:00 +0000 (14:28 +0530)]
SQL/SQLite: Fix GetColumn functions in SQLite and implement a GetColumnSize function
Add a GetColumnSize function in the SQL API.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Rémi Duraffort [Fri, 4 Dec 2009 11:02:59 +0000 (12:02 +0100)]
qt4: kill some reallocations.
Jean-Baptiste Kempf [Fri, 4 Dec 2009 10:45:19 +0000 (11:45 +0100)]
Merge FFmpeg on Windows
Jean-Baptiste Kempf [Fri, 4 Dec 2009 10:45:08 +0000 (11:45 +0100)]
Configure: fix typo
Rémi Duraffort [Fri, 4 Dec 2009 10:38:58 +0000 (11:38 +0100)]
dc1394: fix memleaks.
Rémi Duraffort [Fri, 4 Dec 2009 10:33:46 +0000 (11:33 +0100)]
dc1394: fix potential memleak.
Rémi Duraffort [Fri, 4 Dec 2009 10:31:09 +0000 (11:31 +0100)]
dc1394: fix debug messages
Rémi Duraffort [Fri, 4 Dec 2009 10:16:01 +0000 (11:16 +0100)]
dc1394: We must quit the function if the file handler is -1 (and not continue like if that's ok).
Rémi Duraffort [Fri, 4 Dec 2009 09:55:23 +0000 (10:55 +0100)]
dc1394: factorize.
Jean-Baptiste Kempf [Fri, 4 Dec 2009 10:06:51 +0000 (11:06 +0100)]
Activate projectM for windows
Jean-Baptiste Kempf [Fri, 4 Dec 2009 08:14:31 +0000 (09:14 +0100)]
Contrib: various fixes to hope fixing projectM compilation
Jean-Baptiste Kempf [Fri, 4 Dec 2009 00:00:16 +0000 (01:00 +0100)]
Contrib: update taglib to 1.6.1
Jeff Lu [Wed, 2 Dec 2009 18:50:17 +0000 (10:50 -0800)]
Fix DirectSound spdif audio output
DirectSound spdif-mode audio output was garbled because buffer calculations
were using always pcm-mode size values.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Jean-Baptiste Kempf [Thu, 3 Dec 2009 22:53:42 +0000 (23:53 +0100)]
Contrib: minor update for theora and libpng
Jean-Baptiste Kempf [Thu, 3 Dec 2009 22:48:26 +0000 (23:48 +0100)]
libprojectM 2.0.0 update for Win32
Jean-Baptiste Kempf [Thu, 3 Dec 2009 21:33:13 +0000 (22:33 +0100)]
Contrib: add Glew for projectM
This stupid library with only 1 file to compile has won, by far, to be awarded the MOST STUPID config/Makefile system... Seriously, autotools is bad, but if you do stuff like that, please go and stop using a computer
Jean-Baptiste Kempf [Thu, 3 Dec 2009 20:58:39 +0000 (21:58 +0100)]
Force projectM to be static
Jean-Baptiste Kempf [Thu, 3 Dec 2009 20:56:31 +0000 (21:56 +0100)]
Contribs: use projectM 2.0.0
Jean-Baptiste Kempf [Thu, 3 Dec 2009 22:39:17 +0000 (23:39 +0100)]
Contrib bootstrap: ready cmake crosscompilation
Jean-Baptiste Kempf [Tue, 1 Dec 2009 01:04:59 +0000 (02:04 +0100)]
Qt: remove unnecessary macro
Jean-Baptiste Kempf [Sun, 29 Nov 2009 23:44:01 +0000 (00:44 +0100)]
Qt: rename panels.hpp to standardpanel.hpp
We don't have anymore 2 types of panels.
Jean-Baptiste Kempf [Sun, 29 Nov 2009 23:39:50 +0000 (00:39 +0100)]
Qt: Remove the gotoPlaying button, as noone understood it.
Jean-Baptiste Kempf [Sun, 29 Nov 2009 23:37:10 +0000 (00:37 +0100)]
Qt: playlist, remove the bar of buttons at the bottom
It just changes the layout, but not much more yet.
Jean-Baptiste Kempf [Sun, 29 Nov 2009 23:26:43 +0000 (00:26 +0100)]
Qt: playlist code cosmetics
Jean-Baptiste Kempf [Sun, 29 Nov 2009 23:21:56 +0000 (00:21 +0100)]
Qt: remove random and repeat buttons from playlist
And clean the code.
Jean-Baptiste Kempf [Sun, 29 Nov 2009 23:17:36 +0000 (00:17 +0100)]
Qt: Remove PLPanel upper class
Jean-Baptiste Kempf [Sun, 29 Nov 2009 22:37:08 +0000 (23:37 +0100)]
Qt: add repeat and random button to the default toolbar
Jean-Baptiste Kempf [Sun, 29 Nov 2009 22:16:49 +0000 (23:16 +0100)]
NEWS: XvMC was removed
Jean-Baptiste Kempf [Sun, 29 Nov 2009 22:16:16 +0000 (23:16 +0100)]
Qt: allow loop/repeat button to be in a toolbar (part 2)
Action and states consistency
Jean-Baptiste Kempf [Sun, 29 Nov 2009 20:24:24 +0000 (21:24 +0100)]
Hotkeys: add missing break in switch
Jean-Baptiste Kempf [Sun, 29 Nov 2009 16:47:09 +0000 (17:47 +0100)]
Qt: allow loop/repeat button to be in a toolbar (part 1)
Jean-Baptiste Kempf [Sun, 29 Nov 2009 17:20:24 +0000 (18:20 +0100)]
Qt: make sure the random buttons states are consistent
with the core and between themselves
Jean-Baptiste Kempf [Sun, 29 Nov 2009 16:48:23 +0000 (17:48 +0100)]
Qt: code cosmetic
Jean-Baptiste Kempf [Sun, 29 Nov 2009 16:13:07 +0000 (17:13 +0100)]
Qt: actually activate random action
Jean-Baptiste Kempf [Sat, 28 Nov 2009 13:09:35 +0000 (14:09 +0100)]
Qt: moving Random to the normal toolbars
Jean-Baptiste Kempf [Sat, 28 Nov 2009 13:29:07 +0000 (14:29 +0100)]
Qt: factorize again