vlc.git
11 years agoFix sizeof misuse and variable uninitialization
Pierre Ynard [Tue, 13 Jan 2009 14:14:22 +0000 (15:14 +0100)]
Fix sizeof misuse and variable uninitialization

Unbreaks start-up on WinCE.

Signed-off-by: Rémi Denis-Courmont <rdenis@simphalempin.com>
11 years agoDo not issue input times event when buffering.
Laurent Aimar [Mon, 12 Jan 2009 21:58:33 +0000 (22:58 +0100)]
Do not issue input times event when buffering.

11 years agoOptimized a bit bs_skip.
Laurent Aimar [Mon, 12 Jan 2009 21:06:43 +0000 (22:06 +0100)]
Optimized a bit bs_skip.

11 years agoMissing ENABLE_SOUT checks.
Laurent Aimar [Mon, 12 Jan 2009 21:03:24 +0000 (22:03 +0100)]
Missing ENABLE_SOUT checks.

Pointed out by linkfanel.

11 years agoInteraction: use dedicated condition variable
Rémi Denis-Courmont [Mon, 12 Jan 2009 21:09:50 +0000 (23:09 +0200)]
Interaction: use dedicated condition variable

11 years agoaccess_ftp: cleanup.
Rémi Duraffort [Mon, 12 Jan 2009 18:17:05 +0000 (19:17 +0100)]
access_ftp: cleanup.

11 years agoHide interaction object layout
Rémi Denis-Courmont [Mon, 12 Jan 2009 20:42:30 +0000 (22:42 +0200)]
Hide interaction object layout

11 years agoRemove useless console type and pointer
Rémi Denis-Courmont [Mon, 12 Jan 2009 20:42:12 +0000 (22:42 +0200)]
Remove useless console type and pointer

11 years agoDeclare M4 macro directory
Rémi Denis-Courmont [Mon, 12 Jan 2009 20:21:22 +0000 (22:21 +0200)]
Declare M4 macro directory

11 years agoinput: remove duplicate end/error events
Rémi Denis-Courmont [Mon, 12 Jan 2009 19:36:50 +0000 (21:36 +0200)]
input: remove duplicate end/error events

11 years agoinput: end immediately, do not wait for kill event
Rémi Denis-Courmont [Mon, 12 Jan 2009 19:27:17 +0000 (21:27 +0200)]
input: end immediately, do not wait for kill event

Once the input main loop is done (or if input init fails), input
controls are not popped anyway. So the input callbacks are no-ops.
There is no point in postponing cleanup.

11 years agoinput: small code factorization
Rémi Denis-Courmont [Mon, 12 Jan 2009 19:20:37 +0000 (21:20 +0200)]
input: small code factorization

11 years agoQt4: tell how much has been buffered when buffering (percents)
Ilkka Ollakka [Mon, 12 Jan 2009 18:57:19 +0000 (20:57 +0200)]
Qt4: tell how much has been buffered when buffering (percents)

11 years agovout: trivial code factorization
Rémi Denis-Courmont [Mon, 12 Jan 2009 18:33:24 +0000 (20:33 +0200)]
vout: trivial code factorization

11 years agovout: stop using the object lock, we have the change_lock already
Rémi Denis-Courmont [Mon, 12 Jan 2009 18:31:17 +0000 (20:31 +0200)]
vout: stop using the object lock, we have the change_lock already

11 years agoUseless vlc_object_wait() usage
Rémi Denis-Courmont [Mon, 12 Jan 2009 18:06:03 +0000 (20:06 +0200)]
Useless vlc_object_wait() usage

11 years agoLUA intf: fix lock_and_wait, and stop using vlc_object_wait()
Rémi Denis-Courmont [Mon, 12 Jan 2009 17:52:01 +0000 (19:52 +0200)]
LUA intf: fix lock_and_wait, and stop using vlc_object_wait()

The only event that lock_and_wait can only wait for the end of the
interface event (safely). That is the only piece of state which is read
under the lock.

Also it is not possible to wait on a random object since (deprecated)
vlc_object_signal() is _not_ broadcasting the object condition variable.
In effect, VLC threads shall only wait on their own object (this is not
LUA-specific).

Ultimately, lock_and_wait is of barely any use, and in any case is now
poorly named (my fault for inventing vlc_object_lock_and_wait()). By the
way, it always returns true now.

11 years agoUnused variable
Rémi Denis-Courmont [Mon, 12 Jan 2009 17:51:33 +0000 (19:51 +0200)]
Unused variable

11 years agoUnused variable
Rémi Denis-Courmont [Mon, 12 Jan 2009 17:51:23 +0000 (19:51 +0200)]
Unused variable

11 years agoQt4_message: when the cursor it at the end, scroll down automatically.
Rémi Duraffort [Mon, 12 Jan 2009 16:14:55 +0000 (17:14 +0100)]
Qt4_message: when the cursor it at the end, scroll down automatically.

11 years agomacosx: fixed broken screen fps selection pointed by FUJISAWA Tooru
Felix Paul Kühne [Mon, 12 Jan 2009 16:09:26 +0000 (17:09 +0100)]
macosx: fixed broken screen fps selection pointed by FUJISAWA Tooru

11 years agoRestore download cover art context menu that was taken away by my previous
Ilkka Ollakka [Mon, 12 Jan 2009 15:44:07 +0000 (17:44 +0200)]
Restore download cover art context menu that was taken away by my previous
commit. Thou I think it should invalidate current album art, so core would do
new search for it.

11 years agoQt4: refactor album art stuff into inputmanager
Ilkka Ollakka [Mon, 12 Jan 2009 13:24:20 +0000 (15:24 +0200)]
Qt4: refactor album art stuff into inputmanager

 Input manager now emits signal for album art and gives
 url to art itself, so CoverArt or Background-widgets don't
 need to parse it themself, and CoverArt don't need to use
 those callbacks. This ways both get same image too.

11 years agoQt4: need an input to update caching - fixes #2405
Rémi Denis-Courmont [Sun, 11 Jan 2009 19:34:55 +0000 (21:34 +0200)]
Qt4: need an input to update caching - fixes #2405

11 years agol10n: Japanese update
Tadashi Jokagi [Sun, 11 Jan 2009 18:26:04 +0000 (18:26 +0000)]
l10n: Japanese update

Signed-off-by: Christophe Mutricy <xtophe@videolan.org>
11 years agoSAP: raw UDP has no RTCP
Rémi Denis-Courmont [Sun, 11 Jan 2009 18:36:34 +0000 (20:36 +0200)]
SAP: raw UDP has no RTCP

11 years agoRemove obsolete --sap-timeshift option
Rémi Denis-Courmont [Sun, 11 Jan 2009 18:09:48 +0000 (20:09 +0200)]
Remove obsolete --sap-timeshift option

11 years agoSAP: parse RTCP port out of the SDP
Rémi Denis-Courmont [Sun, 11 Jan 2009 18:03:58 +0000 (20:03 +0200)]
SAP: parse RTCP port out of the SDP

11 years agoRTP: allow odd RTP ports for TCP & DCCP
Rémi Denis-Courmont [Sun, 11 Jan 2009 18:03:18 +0000 (20:03 +0200)]
RTP: allow odd RTP ports for TCP & DCCP

At the moment, we assume RTP/RTCP multiplexing anyhow.

11 years agoRTP: implement separate option for RTCP receive port
Rémi Denis-Courmont [Sun, 11 Jan 2009 18:02:55 +0000 (20:02 +0200)]
RTP: implement separate option for RTCP receive port

11 years agoRemove some semi-colons
Rémi Denis-Courmont [Sun, 11 Jan 2009 17:53:49 +0000 (19:53 +0200)]
Remove some semi-colons

11 years agocontribs: win32 cross-compilation fixes
Felix Paul Kühne [Sun, 11 Jan 2009 17:06:56 +0000 (18:06 +0100)]
contribs: win32 cross-compilation fixes

11 years agoCleanup interaction-capable interface registration
Rémi Denis-Courmont [Sun, 11 Jan 2009 17:05:00 +0000 (19:05 +0200)]
Cleanup interaction-capable interface registration

 * Make registration thread-safe, and independent on vlc_list_find().
 * Fix use-after-free race condition when destroying the interface
   (interaction will be lost instead).

11 years agoAdd subscreen/follow mouse support to Mac OS X screen module.
FUJISAWA Tooru [Sat, 10 Jan 2009 22:05:15 +0000 (07:05 +0900)]
Add subscreen/follow mouse support to Mac OS X screen module.

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
11 years agomodify to tell about --disable-libgcrypt
Ilkka Ollakka [Fri, 9 Jan 2009 10:54:03 +0000 (12:54 +0200)]
modify to tell about --disable-libgcrypt

11 years agodvdnav: also probe file:// (fixes #2131)
Rémi Denis-Courmont [Sun, 11 Jan 2009 14:40:38 +0000 (16:40 +0200)]
dvdnav: also probe file:// (fixes #2131)

11 years agodvdnav: trivially avoid duplicate file path lookup
Rémi Denis-Courmont [Sun, 11 Jan 2009 14:40:13 +0000 (16:40 +0200)]
dvdnav: trivially avoid duplicate file path lookup

11 years agodvdnav: cosmetic simplification
Rémi Denis-Courmont [Sun, 11 Jan 2009 14:37:58 +0000 (16:37 +0200)]
dvdnav: cosmetic simplification

11 years agoRemove un-needed libs
Rémi Denis-Courmont [Sun, 11 Jan 2009 10:14:44 +0000 (12:14 +0200)]
Remove un-needed libs

11 years agoAdd .ogx in case someone ever needs it
Rémi Denis-Courmont [Sun, 11 Jan 2009 09:40:37 +0000 (11:40 +0200)]
Add .ogx in case someone ever needs it

11 years agoHTTPd: use the RFC5334 MIME types for their respective extensions
Rémi Denis-Courmont [Sun, 11 Jan 2009 09:28:27 +0000 (11:28 +0200)]
HTTPd: use the RFC5334 MIME types for their respective extensions

Currently, we stick to legacy application/ogg for legacy extensions.

11 years agoAdd .oga and .spx as per RFC5334
Rémi Denis-Courmont [Sun, 11 Jan 2009 09:26:44 +0000 (11:26 +0200)]
Add .oga and .spx as per RFC5334

11 years agoAdd .s3m and .it as Tracker file extensions
Rémi Denis-Courmont [Sun, 11 Jan 2009 09:24:51 +0000 (11:24 +0200)]
Add .s3m and .it as Tracker file extensions

11 years agoHTTPd: guess MIME type for *.ogv
Rémi Denis-Courmont [Sun, 11 Jan 2009 09:17:10 +0000 (11:17 +0200)]
HTTPd: guess MIME type for *.ogv

11 years agoInput: recognize .ogv files
Rémi Denis-Courmont [Sun, 11 Jan 2009 09:15:07 +0000 (11:15 +0200)]
Input: recognize .ogv files

11 years agoCosmetic
Rémi Denis-Courmont [Sun, 11 Jan 2009 09:14:58 +0000 (11:14 +0200)]
Cosmetic

11 years agojvlc #23: make native resources release explicit
Filippo Carone [Sat, 10 Jan 2009 01:39:53 +0000 (02:39 +0100)]
jvlc #23: make native resources release explicit

11 years agofolder: less include
Rémi Duraffort [Sat, 10 Jan 2009 18:15:31 +0000 (19:15 +0100)]
folder: less include

11 years agotaglib: accept the Xiph comments with more than one embedded art,
Rémi Duraffort [Sat, 10 Jan 2009 18:11:58 +0000 (19:11 +0100)]
taglib: accept the Xiph comments with more than one embedded art,
but take only the first one.

11 years agoUpdate the module list.
Rémi Duraffort [Sat, 10 Jan 2009 17:59:16 +0000 (18:59 +0100)]
Update the module list.

11 years agoGLX: minor fixes
Rémi Denis-Courmont [Sat, 10 Jan 2009 20:21:26 +0000 (22:21 +0200)]
GLX: minor fixes

11 years agoFixed a typo in libass.
Laurent Aimar [Sat, 10 Jan 2009 20:19:12 +0000 (21:19 +0100)]
Fixed a typo in libass.

11 years agolibass: set windows/fonts as default directory
Laurent Aimar [Sat, 10 Jan 2009 20:12:56 +0000 (21:12 +0100)]
libass: set windows/fonts as default directory

Initial patch by Hannes Domani with the comments:
"Hello

 this fixes the problem when font is not attached in mkv.

 was mentioned in:
 http://forum.videolan.org/viewtopic.php?f=14&t=51096&p=166340
 http://forum.videolan.org/viewtopic.php?f=7&t=50534&p=163900
"

11 years agoDirectory: ignore SSA files - fixes #2341
Rémi Denis-Courmont [Sat, 10 Jan 2009 19:45:28 +0000 (21:45 +0200)]
Directory: ignore SSA files - fixes #2341

11 years agoFixed QT4 message dialogs thread safety.
Laurent Aimar [Sat, 10 Jan 2009 19:00:54 +0000 (20:00 +0100)]
Fixed QT4 message dialogs thread safety.

I used customEvent to implement it.
(It renders the dedicated message thread per subscriber useless with qt4).

11 years agoRemove useless parameter
Rémi Denis-Courmont [Sat, 10 Jan 2009 18:53:49 +0000 (20:53 +0200)]
Remove useless parameter

11 years agoPlaylist: only try to add one SD plugin at a time
Rémi Denis-Courmont [Sat, 10 Jan 2009 18:29:22 +0000 (20:29 +0200)]
Playlist: only try to add one SD plugin at a time

Otherwise, we would have to either ignore errors, or fail to load some
plugins just because earlier ones failed

11 years agolibvlc: add SD plugins one by one
Rémi Denis-Courmont [Sat, 10 Jan 2009 18:28:51 +0000 (20:28 +0200)]
libvlc: add SD plugins one by one

11 years agoplaylist: create root SD node before registering events
Rémi Denis-Courmont [Sat, 10 Jan 2009 18:10:09 +0000 (20:10 +0200)]
playlist: create root SD node before registering events

11 years agoFix memory leak
Rémi Denis-Courmont [Sat, 10 Jan 2009 18:04:46 +0000 (20:04 +0200)]
Fix memory leak

11 years agoCosmetic
Rémi Denis-Courmont [Sat, 10 Jan 2009 17:54:40 +0000 (19:54 +0200)]
Cosmetic

11 years agoFix trivial syntax errors
Rémi Denis-Courmont [Sat, 10 Jan 2009 17:54:15 +0000 (19:54 +0200)]
Fix trivial syntax errors

11 years agoPlaylist: detach from SD events _after_ stopping the plugin
Rémi Denis-Courmont [Sat, 10 Jan 2009 17:48:37 +0000 (19:48 +0200)]
Playlist: detach from SD events _after_ stopping the plugin

11 years agoRemove playlist items when destroying the playlist...
Rémi Denis-Courmont [Sat, 10 Jan 2009 17:42:48 +0000 (19:42 +0200)]
Remove playlist items when destroying the playlist...

...rather than when disabling it. Otherwise service discovery plugins
cannot possibly cleanup after themselves (and CABOOM).

11 years agoRemove children kill hack
Rémi Denis-Courmont [Sat, 10 Jan 2009 17:37:21 +0000 (19:37 +0200)]
Remove children kill hack

Whatever would need this would be a buggy SD plugin.

11 years agoRemove suspicious and suspiciously dead code
Rémi Denis-Courmont [Sat, 10 Jan 2009 17:31:09 +0000 (19:31 +0200)]
Remove suspicious and suspiciously dead code

A destructor would never have to release its own object, since the
destructor is only called when the object is not referenced anymore.
On the other hand, it is not clear to me whether SD objects still need
a destructor.

11 years agoSD: remove psz_module parameter, shorter function names
Rémi Denis-Courmont [Sat, 10 Jan 2009 17:28:34 +0000 (19:28 +0200)]
SD: remove psz_module parameter, shorter function names

11 years agoRemove buggy and unused function
Rémi Denis-Courmont [Sat, 10 Jan 2009 17:20:28 +0000 (19:20 +0200)]
Remove buggy and unused function

11 years agoInclude vlc_services_discovery.h only where needed
Rémi Denis-Courmont [Sat, 10 Jan 2009 17:15:34 +0000 (19:15 +0200)]
Include vlc_services_discovery.h only where needed

11 years agoRestore SD human-readable names
Rémi Denis-Courmont [Sat, 10 Jan 2009 17:11:31 +0000 (19:11 +0200)]
Restore SD human-readable names

11 years agoUpdate the GIT revision properly
Rémi Denis-Courmont [Sat, 10 Jan 2009 16:13:33 +0000 (18:13 +0200)]
Update the GIT revision properly

11 years agoClean up here and there
Felix Paul Kühne [Sat, 10 Jan 2009 15:10:30 +0000 (16:10 +0100)]
Clean up here and there

11 years agomacosx: added missing pl locks
Felix Paul Kühne [Sat, 10 Jan 2009 15:06:27 +0000 (16:06 +0100)]
macosx: added missing pl locks

11 years agoQt4: systray hides the interface when it is visible regardless of focus
Rémi Denis-Courmont [Sat, 10 Jan 2009 14:11:54 +0000 (16:11 +0200)]
Qt4: systray hides the interface when it is visible regardless of focus

Otherwise, if the interface is hidden behind another window, clicking
the tray icon however many times will request user attention in the task
bar and never actually show the interface. This was confusing and
inconvenient (fixes #2396). This new behavior is consistent with KMail.

It would probably be even better to show the interface on top (instead
of hiding it, then show it on the second click). Unfortunately, while it
does seem possible, I do not know how. For sure, the previous scheme did
not work anyway.

11 years agoFix grammar and don't minimize if config_getInt fails
Rémi Denis-Courmont [Sat, 10 Jan 2009 13:53:34 +0000 (15:53 +0200)]
Fix grammar and don't minimize if config_getInt fails

11 years agoWe don't need MB2WC when converting ASCII
Rémi Denis-Courmont [Sat, 10 Jan 2009 13:06:21 +0000 (15:06 +0200)]
We don't need MB2WC when converting ASCII

11 years agoGetSymbol: adding a leading underscore is NOT correct on _all_ OSes
Rémi Denis-Courmont [Sat, 10 Jan 2009 13:00:55 +0000 (15:00 +0200)]
GetSymbol: adding a leading underscore is NOT correct on _all_ OSes

11 years agoSmall code factorization
Rémi Denis-Courmont [Sat, 10 Jan 2009 12:51:51 +0000 (14:51 +0200)]
Small code factorization

11 years agoRemove the un-needed horrible vout release hack
Rémi Denis-Courmont [Sat, 10 Jan 2009 10:54:59 +0000 (12:54 +0200)]
Remove the un-needed horrible vout release hack

11 years agoFixed dynamicoverlay SetTextColor.
Laurent Aimar [Sat, 10 Jan 2009 09:41:18 +0000 (10:41 +0100)]
Fixed dynamicoverlay SetTextColor.

Initial patch from Doug West.

11 years agoSupport delaying codec open until extradata are present (avcodec).
Laurent Aimar [Fri, 9 Jan 2009 20:26:23 +0000 (21:26 +0100)]
Support delaying codec open until extradata are present (avcodec).

It fixes support for VC-1 and Theora and Vorbis in avcodec decoder.

11 years agoFixed vc1 packetizer.
Laurent Aimar [Fri, 9 Jan 2009 20:23:04 +0000 (21:23 +0100)]
Fixed vc1 packetizer.

11 years agoRemoved unused field (avcodec).
Laurent Aimar [Fri, 9 Jan 2009 18:43:51 +0000 (19:43 +0100)]
Removed unused field (avcodec).

11 years ago[Contrib]: libupnp build rules. Enable upnp on darwin.
Pavlov Konstantin [Fri, 9 Jan 2009 15:18:36 +0000 (18:18 +0300)]
[Contrib]: libupnp build rules. Enable upnp on darwin.

11 years agoupnp_intel: split the big cpp file in two, declaration and implementation.
Rémi Duraffort [Thu, 8 Jan 2009 10:40:57 +0000 (11:40 +0100)]
upnp_intel: split the big cpp file in two, declaration and implementation.

11 years agomake.pl: don't print infos about qt4 moc.
Rémi Duraffort [Thu, 8 Jan 2009 10:22:21 +0000 (11:22 +0100)]
make.pl: don't print infos about qt4 moc.

11 years agoAssume X11 --forbar-shm is FALSE if the option does not exists
Rémi Denis-Courmont [Thu, 8 Jan 2009 19:51:21 +0000 (21:51 +0200)]
Assume X11 --forbar-shm is FALSE if the option does not exists

11 years agoRevert "* src/video_output/vout_intf.c: small kludge for opengl providers."
Rémi Denis-Courmont [Thu, 8 Jan 2009 19:33:47 +0000 (21:33 +0200)]
Revert "* src/video_output/vout_intf.c: small kludge for opengl providers."

This reverts commit 1eefd3dd7d97392d6e6dfee593538436263ca479.
This fixes GLX crashing while requesting an embedded video window.

Conflicts:

src/video_output/vout_intf.c

11 years agoRemove some useless #includes
Rémi Denis-Courmont [Thu, 8 Jan 2009 19:11:18 +0000 (21:11 +0200)]
Remove some useless #includes

11 years agoBDA: remove %S formatting plus a few other fixes
Ken Self [Sun, 4 Jan 2009 22:54:57 +0000 (09:54 +1100)]
BDA: remove %S formatting plus a few other fixes

Signed-off-by: Rémi Denis-Courmont <rdenis@simphalempin.com>
11 years agovasprintf: stop HEAP exceptions
Ken Self [Sun, 4 Jan 2009 22:54:56 +0000 (09:54 +1100)]
vasprintf: stop HEAP exceptions

On Win32, vsnprintf() and vsprintf() are formatting certain things
differently, e.g. "%p". We need to use the same implementation
throughout our vasprintf() replacement.

Signed-off-by: Rémi Denis-Courmont <rdenis@simphalempin.com>
11 years agoAdded apple subtitle support to mov demuxer (close #2376).
Laurent Aimar [Wed, 7 Jan 2009 19:19:16 +0000 (20:19 +0100)]
Added apple subtitle support to mov demuxer (close #2376).

11 years agoFixed invalid pointer usage.
Laurent Aimar [Tue, 6 Jan 2009 22:18:10 +0000 (23:18 +0100)]
Fixed invalid pointer usage.

11 years agoFinish the initialization in the Open function.
Laurent Aimar [Tue, 6 Jan 2009 22:09:41 +0000 (23:09 +0100)]
Finish the initialization in the Open function.

It fixes embed video at start.

11 years agoFixed bool/int mix up with "intf-show".
Laurent Aimar [Tue, 6 Jan 2009 22:08:29 +0000 (23:08 +0100)]
Fixed bool/int mix up with "intf-show".

11 years agoFixed undefined behavior with integer overflow.
Laurent Aimar [Tue, 6 Jan 2009 21:16:07 +0000 (22:16 +0100)]
Fixed undefined behavior with integer overflow.

Pointed out by Courmish.

11 years agoAvoid sprintf.
Laurent Aimar [Tue, 6 Jan 2009 21:05:08 +0000 (22:05 +0100)]
Avoid sprintf.

It eases security review.

11 years agoSet default item name on input_item_SetURI.
Laurent Aimar [Tue, 6 Jan 2009 20:59:33 +0000 (21:59 +0100)]
Set default item name on input_item_SetURI.

It fixes item name with xpsf playlist (at least).

11 years agoAdded missing const to input_item_SetURI.
Laurent Aimar [Tue, 6 Jan 2009 20:51:51 +0000 (21:51 +0100)]
Added missing const to input_item_SetURI.

11 years agoRTP: when sending to RTP an odd port we need to specify a=rtcp
Rémi Denis-Courmont [Wed, 7 Jan 2009 19:11:17 +0000 (21:11 +0200)]
RTP: when sending to RTP an odd port we need to specify a=rtcp

Otherwise the receiver would -in principle- try to receive RTP on the
next (plus one) even port, whereas the m= line port would be used for
RTCP. We could also pass a=rtcp for the normal even/RTP & odd/RTCP
ports setup, but that can only confuse receivers with no gain.

Note that receivers may not parse the a=rtcp parameter in any case. In
fact, VLC does not parse the a=rtcp field to this day. In any case,
sending RTP to an *even* port is the only safely interoperable option.