vlc.git
13 years agoFix compilation.
Pierre d'Herbemont [Mon, 25 May 2009 10:43:17 +0000 (03:43 -0700)]
Fix compilation.

13 years agolibvlc: Don't use enum directly, it's a bad pratice for ABI compat.
Pierre d'Herbemont [Mon, 25 May 2009 10:42:10 +0000 (03:42 -0700)]
libvlc: Don't use enum directly, it's a bad pratice for ABI compat.

13 years agopython bindings: properly define MANIFEST.in file (patch by <kwizart@gmail.com>)
Olivier Aubert [Mon, 25 May 2009 10:23:19 +0000 (12:23 +0200)]
python bindings: properly define MANIFEST.in file (patch by <kwizart@gmail.com>)

13 years agopython bindings: fix setup.py to use 'pkg-config libvlc' instead of the old vlc-confi...
Olivier Aubert [Mon, 25 May 2009 10:22:41 +0000 (12:22 +0200)]
python bindings: fix setup.py to use 'pkg-config libvlc' instead of the old vlc-config (patch by <kwizart@gmail.com>).

13 years agoInclude new headers in headers.c.
Pierre d'Herbemont [Mon, 25 May 2009 10:06:27 +0000 (03:06 -0700)]
Include new headers in headers.c.

13 years agolibvlc: nsobject is void *.
Pierre d'Herbemont [Mon, 25 May 2009 10:04:23 +0000 (03:04 -0700)]
libvlc: nsobject is void *.

13 years agolibvlc: Split libvlc_internal in different independant headers.
Pierre d'Herbemont [Mon, 25 May 2009 08:47:38 +0000 (01:47 -0700)]
libvlc: Split libvlc_internal in different independant headers.

13 years agolibvlc: Split public headers by object and layers.
Pierre d'Herbemont [Mon, 25 May 2009 07:14:43 +0000 (00:14 -0700)]
libvlc: Split public headers by object and layers.

13 years agoError-proof REMOVE_ELEM
Rémi Denis-Courmont [Sun, 24 May 2009 17:52:40 +0000 (20:52 +0300)]
Error-proof REMOVE_ELEM

13 years agolive555: handle DV over RTSP
Ben Hutchings [Sun, 24 May 2009 14:15:44 +0000 (15:15 +0100)]
live555: handle DV over RTSP

live555 now supports DV (DIF, video/dv) format.  Pass it through to
the DV demuxer.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
13 years agolive555: handle buffer resize error cases
Ben Hutchings [Sun, 24 May 2009 14:12:50 +0000 (15:12 +0100)]
live555: handle buffer resize error cases

Do not update buffer size if realloc() fails.

Assert that buffer was not overflowed rather than merely warning.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
13 years agovcdx: compilation fix
Felix Paul Kühne [Sun, 24 May 2009 16:37:55 +0000 (18:37 +0200)]
vcdx: compilation fix

13 years agoFix obvious typo that prevented correct build.
Jean-Baptiste Kempf [Sat, 23 May 2009 23:47:10 +0000 (01:47 +0200)]
Fix obvious typo that prevented correct build.

13 years agoQt: don't attach the core dialogs to the Main Interface but to the Dialog Provider.
Jean-Baptiste Kempf [Sat, 23 May 2009 23:39:01 +0000 (01:39 +0200)]
Qt: don't attach the core dialogs to the Main Interface but to the Dialog Provider.

This fix all the dialogs (Fix AVI, HTTP login) that didn't show in skins interface.
Manual port of [3b2f1606a0f26ab846e48252baaa57f8dd61ae42]

13 years agoMerge branch 1.0-bugfix into master
Rémi Denis-Courmont [Sat, 23 May 2009 19:39:20 +0000 (22:39 +0300)]
Merge branch 1.0-bugfix into master

13 years agoQuit VLC explicitly before we destroy the interface
Rémi Denis-Courmont [Sat, 23 May 2009 18:30:40 +0000 (21:30 +0300)]
Quit VLC explicitly before we destroy the interface

If VLC is being destroyed for programmatic reasons (libvlc_release()),
the user might not have "quit".

13 years agoUnused variable
Rémi Denis-Courmont [Sat, 23 May 2009 18:30:29 +0000 (21:30 +0300)]
Unused variable

13 years agoUse intf_Create() directly whenever a module is specified
Rémi Denis-Courmont [Sat, 23 May 2009 18:25:23 +0000 (21:25 +0300)]
Use intf_Create() directly whenever a module is specified

13 years agoKill VLC_OBJECT_INTF
Rémi Denis-Courmont [Sat, 23 May 2009 18:17:47 +0000 (21:17 +0300)]
Kill VLC_OBJECT_INTF

13 years agoKeep a thread-safe list of interfaces
Rémi Denis-Courmont [Sat, 23 May 2009 18:14:24 +0000 (21:14 +0300)]
Keep a thread-safe list of interfaces

13 years agoReplace intf_StopThread() with intf_DestroyAll()
Rémi Denis-Courmont [Sat, 23 May 2009 17:45:24 +0000 (20:45 +0300)]
Replace intf_StopThread() with intf_DestroyAll()

13 years agofix intf_c
Rémi Denis-Courmont [Sat, 23 May 2009 17:45:03 +0000 (20:45 +0300)]
fix intf_c

13 years agoDo not create an interface thread if not needed
Rémi Denis-Courmont [Sat, 23 May 2009 17:34:50 +0000 (20:34 +0300)]
Do not create an interface thread if not needed

13 years agoSet intf-add before loading the interface module
Rémi Denis-Courmont [Sat, 23 May 2009 17:28:09 +0000 (20:28 +0300)]
Set intf-add before loading the interface module

13 years agoMerge intf_Create() and intf_RunThread()
Rémi Denis-Courmont [Sat, 23 May 2009 17:18:29 +0000 (20:18 +0300)]
Merge intf_Create() and intf_RunThread()

Interfaces do not have an event handler that would justify the
separation. Indeed, no caller did anything in-between.

Also, the "primary" reference to the interface object belongs to the
main thread because of the libvlc cleanup procedure. Therefore, the
interface thread pointer really should not be returned to the creator.
Note that this does not really fix the small race condition but it
conceals it within intf_Create() and libvlc_InternalCleanup().

13 years agoskins2 : fully support transparency for buttons.
Erwan Tulou [Sat, 23 May 2009 07:40:24 +0000 (09:40 +0200)]
skins2 : fully support transparency for buttons.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
13 years agoCMML: do not (ab)use the interface subsystem
Rémi Denis-Courmont [Sat, 23 May 2009 15:50:15 +0000 (18:50 +0300)]
CMML: do not (ab)use the interface subsystem

Only the core can safely destroy an interface, otherwise, the other
component could race against the core in joining the interface thread
or destroying the interface object.
The fire and forget status of interfaces is by design, and is expected
by -at least- the VLC binary, the NT service plugin and the Remote
Control interface plugin. Anyway, that is pretty the only point of
creating an interface instead of a private thread/object.

13 years agoMove intf_sys_t and intf_thread_t definitions
Rémi Denis-Courmont [Sat, 23 May 2009 16:15:32 +0000 (19:15 +0300)]
Move intf_sys_t and intf_thread_t definitions

13 years agoQt4: use struct as needed
Rémi Denis-Courmont [Sat, 23 May 2009 16:58:56 +0000 (19:58 +0300)]
Qt4: use struct as needed

13 years agoRemove non-existent types
Rémi Denis-Courmont [Sat, 23 May 2009 16:14:08 +0000 (19:14 +0300)]
Remove non-existent types

13 years agoMerge VLC_OBJECT_PACKETIZER with VLC_OBJECT_DECODER
Rémi Denis-Courmont [Sat, 23 May 2009 15:32:28 +0000 (18:32 +0300)]
Merge VLC_OBJECT_PACKETIZER with VLC_OBJECT_DECODER

13 years agoRemove dummy debug
Rémi Denis-Courmont [Sat, 23 May 2009 14:04:11 +0000 (17:04 +0300)]
Remove dummy debug

13 years agoMerge branch 1.0-bugfix into master
Rémi Denis-Courmont [Sat, 23 May 2009 14:01:32 +0000 (17:01 +0300)]
Merge branch 1.0-bugfix into master

Conflicts:
modules/video_output/drawable.c
src/control/libvlc_internal.h

13 years agoDrawable: check properly for busy drawable
Rémi Denis-Courmont [Sat, 23 May 2009 13:50:32 +0000 (16:50 +0300)]
Drawable: check properly for busy drawable

(see http://forum.videolan.org/viewtopic.php?f=32&t=59426)

13 years agoXCB: memory leak
Rémi Denis-Courmont [Sat, 23 May 2009 13:49:58 +0000 (16:49 +0300)]
XCB: memory leak

13 years agoXCB: memory leak
Rémi Denis-Courmont [Sat, 23 May 2009 13:48:53 +0000 (16:48 +0300)]
XCB: memory leak

13 years agoAhem
Rémi Denis-Courmont [Sat, 23 May 2009 12:47:20 +0000 (15:47 +0300)]
Ahem

13 years agoSupport for older xcb-xv
Rémi Denis-Courmont [Sat, 23 May 2009 12:45:56 +0000 (15:45 +0300)]
Support for older xcb-xv

13 years agocore depends on libcompat.la
Rémi Denis-Courmont [Sat, 23 May 2009 11:59:26 +0000 (14:59 +0300)]
core depends on libcompat.la

13 years agoRemove no-op
Rémi Denis-Courmont [Sat, 23 May 2009 11:17:13 +0000 (14:17 +0300)]
Remove no-op

13 years agoFluidsynth: fix block handling
Rémi Denis-Courmont [Sat, 23 May 2009 11:14:32 +0000 (14:14 +0300)]
Fluidsynth: fix block handling

13 years agoMissing space
Rémi Denis-Courmont [Sat, 23 May 2009 10:15:41 +0000 (13:15 +0300)]
Missing space

13 years agoMerge branch 1.0-bugfix
Rémi Denis-Courmont [Sat, 23 May 2009 09:43:00 +0000 (12:43 +0300)]
Merge branch 1.0-bugfix

13 years agolibvlc_media_list_player: privatize
Rémi Denis-Courmont [Thu, 21 May 2009 20:18:53 +0000 (23:18 +0300)]
libvlc_media_list_player: privatize

13 years agoFix initialization order
Rémi Denis-Courmont [Sat, 23 May 2009 09:39:56 +0000 (12:39 +0300)]
Fix initialization order

13 years agoRevert "Elide a bit of code that looks dead. There looks to be a memory leak, too."
Rémi Denis-Courmont [Sat, 23 May 2009 09:38:14 +0000 (12:38 +0300)]
Revert "Elide a bit of code that looks dead. There looks to be a memory leak, too."

This reverts commit 8018c67dc1970cf2536a3fd1f93e92c7a9dc9d07.

13 years agoFixed demux_vaControlHelper GET_TIME implementation.
Laurent Aimar [Fri, 22 May 2009 19:30:16 +0000 (21:30 +0200)]
Fixed demux_vaControlHelper GET_TIME implementation.

It should return the current time even when the size isn't known.

13 years agomacosx: added an entry to Video->Aspect-ratio to disable our AR-lock for one session.
Felix Paul Kühne [Fri, 22 May 2009 17:46:13 +0000 (19:46 +0200)]
macosx: added an entry to Video->Aspect-ratio to disable our AR-lock for one session.

Based upon an idea by Philipp Biermann.

An actual vlc-option for this will be created in the master branch.

Note that this feature does only affect VLCEmbeddedWindow - our plain vout window enforces the AR.

13 years agomacosx: fixed controls in new main window
Felix Paul Kühne [Fri, 22 May 2009 15:08:28 +0000 (17:08 +0200)]
macosx: fixed controls in new main window

13 years agomacosx: fix crash when trying to use the video menu
Felix Paul Kühne [Fri, 22 May 2009 10:36:47 +0000 (12:36 +0200)]
macosx: fix crash when trying to use the video menu

13 years agoElide a bit of code that looks dead. There looks to be a memory leak, too.
JP Dinger [Fri, 22 May 2009 09:08:16 +0000 (11:08 +0200)]
Elide a bit of code that looks dead. There looks to be a memory leak, too.

13 years agoRecover from documented undefined value return on gnu platforms.
JP Dinger [Fri, 22 May 2009 01:05:14 +0000 (03:05 +0200)]
Recover from documented undefined value return on gnu platforms.

13 years agoMoving system includes to happen before vlc includes should obviate
JP Dinger [Fri, 22 May 2009 00:25:27 +0000 (02:25 +0200)]
Moving system includes to happen before vlc includes should obviate
the need for compilation fixes with standard headers.

13 years agoForgotten dirac packetizer in LIST.
Jean-Baptiste Kempf [Thu, 21 May 2009 23:09:19 +0000 (01:09 +0200)]
Forgotten dirac packetizer in LIST.

13 years agoClean up vcdx a bit. Or a lot. It compiles, but I can't test. Since apparently nobody...
JP Dinger [Thu, 21 May 2009 22:55:47 +0000 (00:55 +0200)]
Clean up vcdx a bit. Or a lot. It compiles, but I can't test. Since apparently nobody uses this anyway it shouldn't be a big problem.

13 years agoRefactor vcdx info.c dropping a few memory leaks and other problems. It compiles...
JP Dinger [Thu, 21 May 2009 21:16:09 +0000 (23:16 +0200)]
Refactor vcdx info.c dropping a few memory leaks and other problems. It compiles, but I can't test it.

13 years agomacosx: added new graphics to project file so they get included in the bundle
Felix Paul Kühne [Thu, 21 May 2009 21:59:55 +0000 (23:59 +0200)]
macosx: added new graphics to project file so they get included in the bundle

13 years agomacosx: merge the nib fle containing Eric Dudiak's interface rework
Felix Paul Kühne [Thu, 21 May 2009 21:50:14 +0000 (23:50 +0200)]
macosx: merge the nib fle containing Eric Dudiak's interface rework

13 years agomacosx: added graphics from Eric Dudiak's interface rework
Felix Paul Kühne [Thu, 21 May 2009 21:09:13 +0000 (23:09 +0200)]
macosx: added graphics from Eric Dudiak's interface rework

13 years agomacosx: clean Dudiak's code a bit
Felix Paul Kühne [Thu, 21 May 2009 21:02:08 +0000 (23:02 +0200)]
macosx: clean Dudiak's code a bit

13 years agocompilation fix
Felix Paul Kühne [Thu, 21 May 2009 20:38:33 +0000 (22:38 +0200)]
compilation fix

13 years agomacosx: added Eric Dudiak's source files to the respective lists
Felix Paul Kühne [Thu, 21 May 2009 20:26:40 +0000 (22:26 +0200)]
macosx: added Eric Dudiak's source files to the respective lists

13 years agomacosx: merge Eric Dudiak's code from GSoC 2008
Felix Paul Kühne [Thu, 21 May 2009 20:25:37 +0000 (22:25 +0200)]
macosx: merge Eric Dudiak's code from GSoC 2008

Nibs will be added later on. No user-visible change as of yet.

13 years agoActually initialize media_list_player
Rémi Denis-Courmont [Thu, 21 May 2009 19:36:31 +0000 (22:36 +0300)]
Actually initialize media_list_player

I guess nobody ever tried to use that piece of code.

N.B.: dose not apply to bugfix due to earlier non-backported bugfixes

13 years agoMissing initializer
Rémi Denis-Courmont [Thu, 21 May 2009 19:41:09 +0000 (22:41 +0300)]
Missing initializer

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
13 years agoQt4: activate playlist item on right click (fix #2749)
Rémi Denis-Courmont [Thu, 21 May 2009 18:32:02 +0000 (21:32 +0300)]
Qt4: activate playlist item on right click (fix #2749)

Also, show the popup menu on press rather than release.

13 years agoQt4: activate playlist item on right click (fix #2749)
Rémi Denis-Courmont [Thu, 21 May 2009 18:32:02 +0000 (21:32 +0300)]
Qt4: activate playlist item on right click (fix #2749)

Also, show the popup menu on press rather than release.

13 years agoRemove unhandled error warning
Rémi Denis-Courmont [Thu, 21 May 2009 17:18:53 +0000 (20:18 +0300)]
Remove unhandled error warning

13 years agoRemove error value from locks and condvar initialization
Rémi Denis-Courmont [Thu, 21 May 2009 17:06:47 +0000 (20:06 +0300)]
Remove error value from locks and condvar initialization

On Linux, these functions cannot fail. On Windows, mutexes cannot fail
and neither can real condition varaibles (but we use events instead to
support pre-Vista versions). In practice, the needed resources are
allocated as part of the mutex structure and per-thread data.

In any case, basically none of the call sites for those functions were
checking for errors. It seems best to abort in case of error than to
hit undefined behaviour. We probably do not want to clutter the tree
with untested never used error paths.

13 years agoWinCE does not support spin locks
Rémi Denis-Courmont [Thu, 21 May 2009 17:03:19 +0000 (20:03 +0300)]
WinCE does not support spin locks

13 years agoInclude "config.h" first
Rémi Denis-Courmont [Thu, 21 May 2009 16:45:49 +0000 (19:45 +0300)]
Include "config.h" first

13 years agovlc_clone() and vlc_thread_create() must be checked for errors
Rémi Denis-Courmont [Thu, 21 May 2009 16:43:30 +0000 (19:43 +0300)]
vlc_clone() and vlc_thread_create() must be checked for errors

Those two functions can actually fail and leave the handle undefined.
vlc_join() and vlc_thread_join() would then crash (say, be undefined),
so errors should be taken care of explicitly.

13 years agovlc_mutex_trylock() return value must be checked
Rémi Denis-Courmont [Thu, 21 May 2009 16:43:05 +0000 (19:43 +0300)]
vlc_mutex_trylock() return value must be checked

13 years agoFix mouse key strings
Rémi Denis-Courmont [Thu, 21 May 2009 15:56:34 +0000 (18:56 +0300)]
Fix mouse key strings

13 years agoMerge branch 1.0-bugfix into master
Rémi Denis-Courmont [Thu, 21 May 2009 15:30:26 +0000 (18:30 +0300)]
Merge branch 1.0-bugfix into master

13 years agoXCB/window: really handle media keys
Rémi Denis-Courmont [Thu, 21 May 2009 15:27:30 +0000 (18:27 +0300)]
XCB/window: really handle media keys

13 years agowin32 vout: factorize code
Geoffroy Couprie [Thu, 21 May 2009 15:08:54 +0000 (17:08 +0200)]
win32 vout: factorize code

13 years agoDo not use values within the Unicode points range for special keys
Rémi Denis-Courmont [Thu, 21 May 2009 15:12:40 +0000 (18:12 +0300)]
Do not use values within the Unicode points range for special keys

Also remove conflict between browser back/forward and mouse wheel.

13 years agomacosx: finally completed the progress-panel's implementation
Felix Paul Kühne [Thu, 21 May 2009 15:03:47 +0000 (17:03 +0200)]
macosx: finally completed the progress-panel's implementation

13 years agomacosx: fixed compilation warning
Felix Paul Kühne [Thu, 21 May 2009 15:02:53 +0000 (17:02 +0200)]
macosx: fixed compilation warning

13 years agomacosx: finally completed the progress-panel's implementation
Felix Paul Kühne [Thu, 21 May 2009 15:03:47 +0000 (17:03 +0200)]
macosx: finally completed the progress-panel's implementation

13 years agomacosx: fixed compilation warning
Felix Paul Kühne [Thu, 21 May 2009 15:02:53 +0000 (17:02 +0200)]
macosx: fixed compilation warning

13 years agoKeyToString: divide and conquer
Rémi Denis-Courmont [Thu, 21 May 2009 13:49:39 +0000 (16:49 +0300)]
KeyToString: divide and conquer

13 years agoCheck that keys are sorted properly
Rémi Denis-Courmont [Thu, 21 May 2009 13:41:27 +0000 (16:41 +0300)]
Check that keys are sorted properly

13 years agoPut keys in VLC key code order
Rémi Denis-Courmont [Thu, 21 May 2009 13:41:04 +0000 (16:41 +0300)]
Put keys in VLC key code order

13 years agoMedia keys are supported NOT only on Windows
Rémi Denis-Courmont [Thu, 21 May 2009 13:26:48 +0000 (16:26 +0300)]
Media keys are supported NOT only on Windows

13 years agoGet rid of KEY_ASCII and KEY_SPECIAL
Rémi Denis-Courmont [Thu, 21 May 2009 13:22:09 +0000 (16:22 +0300)]
Get rid of KEY_ASCII and KEY_SPECIAL

13 years agomacosx: NEWS and THANKS
Felix Paul Kühne [Thu, 21 May 2009 12:23:49 +0000 (14:23 +0200)]
macosx: NEWS and THANKS

13 years agomacosx: fixed Xcode project file and make dist (new document icons...)
Felix Paul Kühne [Thu, 21 May 2009 12:17:18 +0000 (14:17 +0200)]
macosx: fixed Xcode project file and make dist (new document icons...)

13 years agonew document icons for mac os x
Dominic Spitaler [Sun, 17 May 2009 22:13:36 +0000 (00:13 +0200)]
new document icons for mac os x

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
13 years agotest: Add a test for media_player_next().
Pierre d'Herbemont [Thu, 21 May 2009 06:34:03 +0000 (23:34 -0700)]
test: Add a test for media_player_next().

Doesn't work because variables callback can't be removed from their own callbacks.
Some work will be required here.

13 years agolibvlc: Use a separate lock for media_list_lock and refcounting.
Pierre d'Herbemont [Thu, 21 May 2009 06:19:35 +0000 (23:19 -0700)]
libvlc: Use a separate lock for media_list_lock and refcounting.

Those finer grained locks help the media_list_player.

13 years agotest: Don't do the pause() test, this can't work.
Pierre d'Herbemont [Thu, 21 May 2009 06:12:17 +0000 (23:12 -0700)]
test: Don't do the pause() test, this can't work.

Basically pause() might play(). This may need some revamping.

13 years agotest: Fix media_player test.
Pierre d'Herbemont [Thu, 21 May 2009 05:38:00 +0000 (22:38 -0700)]
test: Fix media_player test.

libvlc_Ended is the state we want to check.
When paused, if the media ended before, we need to allow that state.

13 years agotest: Fix log issued in test_media_list_player_play_item_at_index.
Pierre d'Herbemont [Thu, 21 May 2009 05:07:25 +0000 (22:07 -0700)]
test: Fix log issued in test_media_list_player_play_item_at_index.

13 years agotest: Reenable media_list_player test. And explain why meta test is disabled.
Pierre d'Herbemont [Wed, 20 May 2009 06:03:12 +0000 (23:03 -0700)]
test: Reenable media_list_player test. And explain why meta test is disabled.

Works here.

13 years agotest: Fix meta.c test building.
Pierre d'Herbemont [Thu, 21 May 2009 05:01:06 +0000 (22:01 -0700)]
test: Fix meta.c test building.

13 years agotest: Make sure we wait for the correct state in media_player test.
Pierre d'Herbemont [Wed, 20 May 2009 05:59:36 +0000 (22:59 -0700)]
test: Make sure we wait for the correct state in media_player test.

13 years agotest: Disable debug output in libvlc tests.
Pierre d'Herbemont [Wed, 20 May 2009 05:55:19 +0000 (22:55 -0700)]
test: Disable debug output in libvlc tests.

13 years agoWinCE: add replacement getcwd() function
Pierre Ynard [Wed, 20 May 2009 22:11:37 +0000 (00:11 +0200)]
WinCE: add replacement getcwd() function

As WinCE doesn't support working directories, this function is
basically empty, and merely returns an error.