vlc.git
12 years agoFix memleaks and one potential memleak (and move a test where it might be)
Rémi Duraffort [Wed, 20 Aug 2008 17:53:59 +0000 (19:53 +0200)]
Fix memleaks and one potential memleak (and move a test where it might be)

12 years agoFix warnings.
Rémi Duraffort [Wed, 20 Aug 2008 17:45:27 +0000 (19:45 +0200)]
Fix warnings.

12 years agoFix potential memleak.
Rémi Duraffort [Wed, 20 Aug 2008 17:39:17 +0000 (19:39 +0200)]
Fix potential memleak.

12 years agoMake the buildbot happy by fixing some of the warnings.
Rémi Duraffort [Wed, 20 Aug 2008 17:12:33 +0000 (19:12 +0200)]
Make the buildbot happy by fixing some of the warnings.

12 years agomjpeg demux: When looking trough the data for EOI, also check for SOIs and skip the...
Derk-Jan Hartman [Wed, 20 Aug 2008 14:42:37 +0000 (16:42 +0200)]
mjpeg demux: When looking trough the data for EOI, also check for SOIs and skip the next EOI if we do find a SOI. This is to handle JPEG images which have JPEG thumbnails in their EXIF data.

12 years agocore chroma: fix [6702c30413175ff91adcf4cfb9585134d1ab7213] Restore YUV422 and YUV420...
Derk-Jan Hartman [Wed, 20 Aug 2008 14:10:06 +0000 (16:10 +0200)]
core chroma: fix [6702c30413175ff91adcf4cfb9585134d1ab7213] Restore YUV422 and YUV420 type formats to original values.

12 years agocore chroma: Add support for YUV440 and YUVJ440. These are a rotated version of YUV42...
Derk-Jan Hartman [Wed, 20 Aug 2008 13:56:19 +0000 (15:56 +0200)]
core chroma: Add support for YUV440 and YUVJ440. These are a rotated version of YUV422 and used with rotated JPEGs mostly.

12 years agoffmpeg chroma: fix [079fdd3f33560bfc2b36181ac367649fc0c12f9f]. copy paste error ...
Derk-Jan Hartman [Wed, 20 Aug 2008 12:09:56 +0000 (14:09 +0200)]
ffmpeg chroma: fix [079fdd3f33560bfc2b36181ac367649fc0c12f9f]. copy paste error :D. Thanks xtophe

12 years agoffmpeg chroma: This follows up on [0034fbab5587b1197b0458ab3af20ea2644e12bc] by provi...
Derk-Jan Hartman [Wed, 20 Aug 2008 12:01:51 +0000 (14:01 +0200)]
ffmpeg chroma: This follows up on [0034fbab5587b1197b0458ab3af20ea2644e12bc] by providing defaults in case no mask values were set.

12 years agoFixes bad error checking on read errors.
Eric Petit [Wed, 20 Aug 2008 07:15:50 +0000 (09:15 +0200)]
Fixes bad error checking on read errors.
Don't use "p_block->i_buffer = read(...)", i_buffer is unsigned so you
won't catch read errors and will end up crashing using a 4GB buffer
instead. This fixes a DVB segv I was seeing.

12 years agomacosx: In bookmarks's dealloc, we shouldn't release the p_old_input ptr, as we have...
Pierre d'Herbemont [Wed, 20 Aug 2008 06:58:57 +0000 (08:58 +0200)]
macosx: In bookmarks's dealloc, we shouldn't release the p_old_input ptr, as we have already released it.

This should fix a crash reported in our bugreport ml.

12 years agoUpgrade mandatory version for matroska to 0.8.0 and ebml to 0.7.7.
Laurent Aimar [Wed, 20 Aug 2008 00:31:33 +0000 (02:31 +0200)]
Upgrade mandatory version for matroska to 0.8.0 and ebml to 0.7.7.

12 years agoFix mkv track checking in blockget (TrackNum() != our track index).
Laurent Aimar [Wed, 20 Aug 2008 00:16:56 +0000 (02:16 +0200)]
Fix mkv track checking in blockget (TrackNum() != our track index).

12 years agoDon't restart playlist after converting current item to node
Przemyslaw Fiala [Tue, 19 Aug 2008 19:47:57 +0000 (21:47 +0200)]
Don't restart playlist after converting current item to node

Signed-off-by: Pierre d'Herbemont <pdherbemont@videolan.org>
12 years agocontribs: update libpng patch for OSX
Derk-Jan Hartman [Tue, 19 Aug 2008 23:59:37 +0000 (01:59 +0200)]
contribs: update libpng patch for OSX

12 years agoIgnore invalid blocks (on broken files).
Laurent Aimar [Tue, 19 Aug 2008 22:50:20 +0000 (00:50 +0200)]
Ignore invalid blocks (on broken files).
workarounds a bug in KaxBlockVirtual implementation (close #1079).

12 years agoCheck asprintf return value.
Rémi Duraffort [Tue, 19 Aug 2008 22:07:21 +0000 (00:07 +0200)]
Check asprintf return value.

12 years agoFix warnings.
Rémi Duraffort [Tue, 19 Aug 2008 22:01:08 +0000 (00:01 +0200)]
Fix warnings.

12 years agoUse delete[] for arrays.
Rémi Duraffort [Tue, 19 Aug 2008 21:45:10 +0000 (23:45 +0200)]
Use delete[] for arrays.

12 years agoFix warnings.
Rémi Duraffort [Tue, 19 Aug 2008 21:42:40 +0000 (23:42 +0200)]
Fix warnings.

12 years agoFix compilation warnings.
Rémi Duraffort [Tue, 19 Aug 2008 21:34:46 +0000 (23:34 +0200)]
Fix compilation warnings.

12 years agoFix warnings
Rémi Duraffort [Tue, 19 Aug 2008 21:21:57 +0000 (23:21 +0200)]
Fix warnings

12 years agoDelete arrays ith delete[] and fix memleak.
Rémi Duraffort [Tue, 19 Aug 2008 21:09:03 +0000 (23:09 +0200)]
Delete arrays ith delete[] and fix memleak.

12 years agoUse delete[] to delete an array.
Rémi Duraffort [Tue, 19 Aug 2008 20:58:59 +0000 (22:58 +0200)]
Use delete[] to delete an array.

12 years agoffmpeg chroma: add rgb masks to the chroma mapping table. This fixes #1749 and likely...
Derk-Jan Hartman [Tue, 19 Aug 2008 20:53:45 +0000 (22:53 +0200)]
ffmpeg chroma: add rgb masks to the chroma mapping table. This fixes #1749 and likely #1762.

- Not 100% sure about PIX_FMT_RGB4 and PIX_FMT_RGB8, because their comments in the avutil.h header are incorrect.
- We use FOURCC RGB8, but it seems we use FOURCC RGB2 for RGB8 troughout the rest of VLC. Should be checked.

12 years agoDo not try rtmp access unless requested (as all other network modules).
Laurent Aimar [Tue, 19 Aug 2008 20:35:08 +0000 (22:35 +0200)]
Do not try rtmp access unless requested (as all other network modules).

12 years agoDon't call mdate too many times.
Rémi Duraffort [Tue, 19 Aug 2008 20:18:51 +0000 (22:18 +0200)]
Don't call mdate too many times.

12 years agoFix compilation with old ffmpeg.
Rémi Duraffort [Tue, 19 Aug 2008 20:16:13 +0000 (22:16 +0200)]
Fix compilation with old ffmpeg.

12 years agoffmpeg chroma: stupid test mistake for the decoder. remove some overly "loud" errors...
Derk-Jan Hartman [Tue, 19 Aug 2008 19:17:00 +0000 (21:17 +0200)]
ffmpeg chroma: stupid test mistake for the decoder. remove some overly "loud" errors, that are not really problems.

12 years agoffmpeg chroma: Change GetVlcChroma and GetFfmpegChroma to use a video_format_t, so...
Derk-Jan Hartman [Tue, 19 Aug 2008 19:02:25 +0000 (21:02 +0200)]
ffmpeg chroma: Change GetVlcChroma and GetFfmpegChroma to use a video_format_t, so that we will be able to access and set the rgb mask later on.

This is the first work required to fix #1749

12 years agoAdded s32l/b to float conversion support (close #1872).
Laurent Aimar [Tue, 19 Aug 2008 18:54:41 +0000 (20:54 +0200)]
Added s32l/b to float conversion support (close #1872).

12 years agoAdded s32l/b support to aout.
Laurent Aimar [Tue, 19 Aug 2008 18:54:05 +0000 (20:54 +0200)]
Added s32l/b support to aout.

12 years agoCosmetics (fixed a few functions name).
Laurent Aimar [Tue, 19 Aug 2008 18:42:56 +0000 (20:42 +0200)]
Cosmetics (fixed a few functions name).

12 years agoSmall bump of speex that is now rc1
Jean-Baptiste Kempf [Tue, 19 Aug 2008 17:14:01 +0000 (19:14 +0200)]
Small bump of speex that is now rc1
Small update for png decoding library (memory leak fix mainly)

12 years agoLIBAVUTIL_VERSION_INT inclusion guards...
Jean-Baptiste Kempf [Tue, 19 Aug 2008 17:00:22 +0000 (10:00 -0700)]
LIBAVUTIL_VERSION_INT inclusion guards...

12 years agolibvlccore: the object counter is specific so misc/objects.c
Rémi Denis-Courmont [Tue, 19 Aug 2008 15:22:12 +0000 (18:22 +0300)]
libvlccore: the object counter is specific so misc/objects.c

12 years agoswscale: lower priority of swscale from 1000 -> 55, because it is broken for RGB...
Derk-Jan Hartman [Tue, 19 Aug 2008 13:32:32 +0000 (15:32 +0200)]
swscale: lower priority of swscale from 1000 -> 55, because it is broken for RGB formats. This way, our "native" chroma filters should take precedence. This eleviate issues with #1749 and #1762 but does NOT fix them since they are still broken for scaling.

12 years agoffmpeg chroma: fix whitespace
Derk-Jan Hartman [Tue, 19 Aug 2008 13:30:46 +0000 (15:30 +0200)]
ffmpeg chroma: fix whitespace

12 years agoffmpeg: PIX_FMT_YUV422 was renamed to PIX_FMT_YUYV422 (to avoid ambiguity i guess)
Derk-Jan Hartman [Tue, 19 Aug 2008 13:13:19 +0000 (15:13 +0200)]
ffmpeg: PIX_FMT_YUV422 was renamed to PIX_FMT_YUYV422 (to avoid ambiguity i guess)

12 years agoffmpeg: Add some more chroma fourcc's to the ffmpeg chroma table (NV12, NV21, Y411...
Derk-Jan Hartman [Tue, 19 Aug 2008 13:01:02 +0000 (15:01 +0200)]
ffmpeg: Add some more chroma fourcc's to the ffmpeg chroma table (NV12, NV21, Y411, I440, J440)

12 years agoKill warnings.
Jean-Baptiste Kempf [Tue, 19 Aug 2008 07:17:59 +0000 (09:17 +0200)]
Kill warnings.

12 years agoCosmetic.
Jean-Baptiste Kempf [Mon, 18 Aug 2008 23:59:34 +0000 (16:59 -0700)]
Cosmetic.

12 years agoFix a probable crash when fullscreen controllers are disabled.
Jean-Baptiste Kempf [Mon, 18 Aug 2008 23:58:33 +0000 (16:58 -0700)]
Fix a probable crash when fullscreen controllers are disabled.

12 years agoSmall Sound Slider issue fixed.
Jean-Baptiste Kempf [Mon, 18 Aug 2008 23:04:42 +0000 (16:04 -0700)]
Small Sound Slider issue fixed.

12 years agol10n: Dutch l10n update by Myckel Habets
Christophe Mutricy [Mon, 18 Aug 2008 20:50:30 +0000 (21:50 +0100)]
l10n: Dutch l10n update by Myckel Habets

12 years agoi18n: Add yet more strings to vlc.pot
Christophe Mutricy [Mon, 18 Aug 2008 21:53:59 +0000 (22:53 +0100)]
i18n: Add yet more strings to vlc.pot

So that our perfectionist translators get a chance to reach 100% before
we release

12 years agoqt4: i18n fixes
Christophe Mutricy [Mon, 18 Aug 2008 21:38:07 +0000 (22:38 +0100)]
qt4: i18n fixes

12 years agoAdd the turkish translator
Christophe Mutricy [Mon, 18 Aug 2008 19:27:16 +0000 (20:27 +0100)]
Add the turkish translator

12 years agoFix warning.
Rémi Duraffort [Mon, 18 Aug 2008 20:51:37 +0000 (22:51 +0200)]
Fix warning.

12 years agol10n: Slovak l10n update by Marián Hikaník
Christophe Mutricy [Mon, 18 Aug 2008 18:43:22 +0000 (19:43 +0100)]
l10n: Slovak l10n update by Marián Hikaník

12 years agol10n: Turkish l10n update by Yuksel YILDIRIM
Christophe Mutricy [Mon, 18 Aug 2008 18:42:36 +0000 (19:42 +0100)]
l10n: Turkish l10n update by Yuksel YILDIRIM

12 years agoAdded a workaround for broken avi files (close #1850).
Laurent Aimar [Mon, 18 Aug 2008 17:36:39 +0000 (19:36 +0200)]
Added a workaround for broken avi files (close #1850).

12 years agoFixed flac demuxer segfault (/0) when seektable is empty.
Laurent Aimar [Mon, 18 Aug 2008 14:27:01 +0000 (16:27 +0200)]
Fixed flac demuxer segfault (/0) when seektable is empty.

12 years agoImproved flac SyncInfo robustness by using stream info when available (close 1847).
Laurent Aimar [Mon, 18 Aug 2008 14:03:55 +0000 (16:03 +0200)]
Improved flac SyncInfo robustness by using stream info when available (close 1847).

12 years agoFixed a potential freetype deadlock as var_AcquireMutex is not recursive :(
Laurent Aimar [Mon, 18 Aug 2008 12:03:08 +0000 (14:03 +0200)]
Fixed a potential freetype deadlock as var_AcquireMutex is not recursive :(
(It probably should have been called AquireLock then)

12 years agoCorrected semi transparent ZVBI test (but I let it disabled).
Laurent Aimar [Mon, 18 Aug 2008 11:31:35 +0000 (13:31 +0200)]
Corrected semi transparent ZVBI test (but I let it disabled).

12 years agoCosmetics.
Laurent Aimar [Mon, 18 Aug 2008 11:29:19 +0000 (13:29 +0200)]
Cosmetics.

12 years agoAdded support for * to RGBA/YUVA conversions (close #1844).
Laurent Aimar [Mon, 18 Aug 2008 11:27:15 +0000 (13:27 +0200)]
Added support for * to RGBA/YUVA conversions (close #1844).

12 years agoCosmetics.
Laurent Aimar [Mon, 18 Aug 2008 11:24:35 +0000 (13:24 +0200)]
Cosmetics.

12 years agoAllowed user to cancel avi index creation.
Laurent Aimar [Mon, 18 Aug 2008 11:20:39 +0000 (13:20 +0200)]
Allowed user to cancel avi index creation.

12 years agoRemoved unneeded variables from avi demuxer context.
Laurent Aimar [Mon, 18 Aug 2008 11:19:13 +0000 (13:19 +0200)]
Removed unneeded variables from avi demuxer context.

12 years agoDo not leave the index building progress bar opened when exit is requested.
Laurent Aimar [Mon, 18 Aug 2008 11:15:17 +0000 (13:15 +0200)]
Do not leave the index building progress bar opened when exit is requested.

12 years agoFixed __intf_UserHide (close #1827)
Laurent Aimar [Mon, 18 Aug 2008 11:09:03 +0000 (13:09 +0200)]
Fixed __intf_UserHide (close #1827)

12 years agoFixed a potential race condition in interaction.
Laurent Aimar [Mon, 18 Aug 2008 11:08:25 +0000 (13:08 +0200)]
Fixed a potential race condition in interaction.

12 years agoFix a .org/.com confusion. My bad.
Jean-Baptiste Kempf [Mon, 18 Aug 2008 16:53:19 +0000 (09:53 -0700)]
Fix a .org/.com confusion. My bad.

12 years agoin-memory snapshot: use vlc_object_signal instead of vlc_object_signal_maybe
Olivier Aubert [Mon, 18 Aug 2008 13:50:12 +0000 (15:50 +0200)]
in-memory snapshot: use vlc_object_signal instead of vlc_object_signal_maybe

12 years agoRevert "snapshot: Don't use vlc_object_signal_maybe."
Olivier Aubert [Mon, 18 Aug 2008 13:41:53 +0000 (15:41 +0200)]
Revert "snapshot: Don't use vlc_object_signal_maybe."

The p_dest object is indeed locked by the calling method (cf mediacontrol_snapshot in src/control/mediacontrol_audio_video.c).

This reverts commit ebbde26e5ea3f3c76845630463e45ee2ec92bd35.

12 years agotaglib: double header inclusion
Derk-Jan Hartman [Sun, 17 Aug 2008 23:05:01 +0000 (01:05 +0200)]
taglib: double header inclusion

12 years agotaglib: fix variable scoping
Derk-Jan Hartman [Sun, 17 Aug 2008 23:04:15 +0000 (01:04 +0200)]
taglib: fix variable scoping

12 years agoCheck asprintf return value.
Rémi Duraffort [Sun, 17 Aug 2008 19:47:00 +0000 (21:47 +0200)]
Check asprintf return value.

12 years agoFix warning and potential memleak.
Rémi Duraffort [Sun, 17 Aug 2008 19:31:27 +0000 (21:31 +0200)]
Fix warning and potential memleak.

12 years agoCheck malloc return value.
Rémi Duraffort [Sun, 17 Aug 2008 18:00:45 +0000 (20:00 +0200)]
Check malloc return value.

12 years agoFix previous commit.
Pierre d'Herbemont [Sun, 17 Aug 2008 18:34:04 +0000 (20:34 +0200)]
Fix previous commit.

12 years agoplaylist: Assert() locked in playlist_Release().
Pierre d'Herbemont [Sun, 17 Aug 2008 18:25:01 +0000 (20:25 +0200)]
playlist: Assert() locked in playlist_Release().

12 years agoplaylist: Make sure we always have an input_item associated to a playlist_item.
Pierre d'Herbemont [Sun, 17 Aug 2008 18:15:33 +0000 (20:15 +0200)]
playlist: Make sure we always have an input_item associated to a playlist_item.

12 years agoFixes the output i_bitspersample set by the audio_format filter.
Eric Petit [Sun, 17 Aug 2008 17:30:36 +0000 (19:30 +0200)]
Fixes the output i_bitspersample set by the audio_format filter.
It was always set equal to the input's i_bitspersample, which caused
crashes in some transcoding sessions.

12 years agotaglib: Fix opening of filenames on non-UTF8 systems.
Derk-Jan Hartman [Sun, 17 Aug 2008 16:12:27 +0000 (18:12 +0200)]
taglib: Fix opening of filenames on non-UTF8 systems.

Unfortunately taglib does not accept fd's or FILE*, so i ported the code from src/text/unicode.c open() to here.

12 years agomacosx: Fix a typo in the pragma.
Pierre d'Herbemont [Sun, 17 Aug 2008 11:48:42 +0000 (13:48 +0200)]
macosx: Fix a typo in the pragma.

12 years agomacosx: Remove VLCApplication Hack. No need for that we properly do everything relate...
Pierre d'Herbemont [Sun, 17 Aug 2008 11:33:19 +0000 (13:33 +0200)]
macosx: Remove VLCApplication Hack. No need for that we properly do everything related to libvlc kill elsewhere.

12 years agomacosx: Group via pragma related methods.
Pierre d'Herbemont [Sun, 17 Aug 2008 11:09:56 +0000 (13:09 +0200)]
macosx: Group via pragma related methods.

This file is way too big (!).

12 years agolibvlccore: remove the threads count
Rémi Denis-Courmont [Sun, 17 Aug 2008 10:25:59 +0000 (13:25 +0300)]
libvlccore: remove the threads count

Nowadays, it can only deadlock (threads>0) or do nothing (threads==0)

12 years agoVLM: join before destroy
Rémi Denis-Courmont [Sun, 17 Aug 2008 10:22:43 +0000 (13:22 +0300)]
VLM: join before destroy

12 years agoJoin the input thread before we destroy the input object
Rémi Denis-Courmont [Sun, 17 Aug 2008 10:21:04 +0000 (13:21 +0300)]
Join the input thread before we destroy the input object

12 years agoSmall code factorization
Rémi Denis-Courmont [Sun, 17 Aug 2008 10:11:54 +0000 (13:11 +0300)]
Small code factorization

12 years agoSMF: channels data (stereo) and dummy rate to not confuse codecs
Rémi Denis-Courmont [Sun, 17 Aug 2008 07:59:03 +0000 (10:59 +0300)]
SMF: channels data (stereo) and dummy rate to not confuse codecs

12 years agoFluidsynth: use native FL32 format, avoid converting to 16 bits and back
Rémi Denis-Courmont [Sun, 17 Aug 2008 07:49:05 +0000 (10:49 +0300)]
Fluidsynth: use native FL32 format, avoid converting to 16 bits and back

12 years agoFix dialog saving size regression. Close #1867.
Jean-Baptiste Kempf [Sun, 17 Aug 2008 03:04:18 +0000 (20:04 -0700)]
Fix dialog saving size regression. Close #1867.

12 years agoFix typo. Close #1865
Jean-Baptiste Kempf [Sun, 17 Aug 2008 02:40:14 +0000 (19:40 -0700)]
Fix typo. Close #1865

12 years agoThanks helper from the forum.
Jean-Baptiste Kempf [Sun, 17 Aug 2008 01:46:47 +0000 (18:46 -0700)]
Thanks helper from the forum.

12 years agoconfigure: Fix the CALayer test.
Pierre d'Herbemont [Sat, 16 Aug 2008 18:30:42 +0000 (20:30 +0200)]
configure: Fix the CALayer test.

12 years agovlckit: Fix a warning.
Pierre d'Herbemont [Sat, 16 Aug 2008 17:27:15 +0000 (19:27 +0200)]
vlckit: Fix a warning.

12 years agovlckit: Fix compilation.
Pierre d'Herbemont [Sat, 16 Aug 2008 17:26:18 +0000 (19:26 +0200)]
vlckit: Fix compilation.

12 years agoBetter lock during I/O than crash
Rémi Denis-Courmont [Sat, 16 Aug 2008 16:23:43 +0000 (19:23 +0300)]
Better lock during I/O than crash

12 years agotranscode: try to fix audio resampling (fix #1862)
Rémi Denis-Courmont [Sat, 16 Aug 2008 07:56:32 +0000 (10:56 +0300)]
transcode: try to fix audio resampling (fix #1862)

This reverts commit d4485423d9c3a5519875f8bc37467831ce10763e.

12 years agoreal: Abort demuxing in case of error.
Pierre d'Herbemont [Sat, 16 Aug 2008 13:21:14 +0000 (15:21 +0200)]
real: Abort demuxing in case of error.

12 years agoreal: Protect against negative size reading.
Pierre d'Herbemont [Sat, 16 Aug 2008 13:19:34 +0000 (15:19 +0200)]
real: Protect against negative size reading.

Should fix a crash reported by the bugreport ml.

12 years agoaudioscrobbler: *Never* do module unloading from within the module. You are basically...
Pierre d'Herbemont [Sat, 16 Aug 2008 10:45:57 +0000 (12:45 +0200)]
audioscrobbler: *Never* do module unloading from within the module. You are basically unloading the code you are executing, that's a nice crasher.

Also make sure playlist is not NULL. (This is an attempt to fix a from the famous bugreport ml).

12 years agoFix typo
Rémi Denis-Courmont [Sat, 16 Aug 2008 07:54:13 +0000 (10:54 +0300)]
Fix typo

12 years agoaudio_output: Use help to lock and unlock so we can hopefully track bad locking scheme.
Pierre d'Herbemont [Fri, 15 Aug 2008 22:23:08 +0000 (00:23 +0200)]
audio_output: Use help to lock and unlock so we can hopefully track bad locking scheme.

The audio output locking rule seems very vague. Moreover there could be some cross lock issues.

12 years agomacosx: Try to fix a crash at exit.
Pierre d'Herbemont [Fri, 15 Aug 2008 22:20:06 +0000 (00:20 +0200)]
macosx: Try to fix a crash at exit.

Spotted in our bugreport ml.