Clément Stenac [Thu, 29 Jan 2004 17:51:08 +0000 (17:51 +0000)]
Options as infos were bad in several ways: it broke PLAYLIST_GO, used
much memory, and was inconsistent, especially with input_CreateThread
taking an array of options
* Revert to using array of options
* To add an item with options:
- either use playlist_ItemNew, ItemAddOption, and then AddItem
(useful if you don't have all your options in an array)
- either use playlist_AddExt (use this if all your options are
already in an array)
* To add an item without options: use playlist_Add
You can still add options after an item has been added by using either
playlist_AddOption or playlist_ItemAddOption
* Attempt to improve API and solve thread safety issues.
- playlist_Item* functions allow to touch items only.
p_item->lock must be used when needed
(playlist_ItemNew, playlist_ItemDelete, playlist_Item*Info,
playlist_ItemSet* )
- playlist_ItemGetById and ItemGetByPos give you playlist_items
for GetByPos, you should have the playlist lock
At the moment, the playlist_Set* and playlist_*Info functions are kept (they work with position) but should be avoided.
Gildas Bazin [Thu, 29 Jan 2004 17:04:01 +0000 (17:04 +0000)]
* src/misc/configuration.c, include/configuration.h: added a change_action_add()method to associate an action (that can be triggered through a gui) to a config var.
* modules/gui/wxwindows/preferences_widgets.*: implemented partial support for change_action_add().
* modules/access/dshow/dshow.cpp: use change_action_add() to refresh the list of devices and to add an option to configure a device.
Derk-Jan Hartman [Tue, 27 Jan 2004 22:51:39 +0000 (22:51 +0000)]
* modules/demux/util/sub.?
Vobsub is working now. only track 0 will be played atm.
spudec scaling will need to be implemented or vobsub is pretty useless.
* modules/codec/spudec
Changed an error into a warning message.
Gildas Bazin [Tue, 27 Jan 2004 21:12:42 +0000 (21:12 +0000)]
* configure.ac: don't link with msimg32 directly has it isn't available on Win9x/NT4.
* modules/gui/skins2/win32/win32_graphics.cpp: use AlphaBlend() from the Win32Factory object.
Gildas Bazin [Tue, 27 Jan 2004 17:01:51 +0000 (17:01 +0000)]
* modules/gui/skins2/win32/*: dynamically load AlphaBlend() as it isn't available on Win9x,NT4.
Parent window created outside the screen so it isn't visible.
Could somebody (AsMaX, ipkiss) have a look at the AlphaBlend() function call in win32_graphics.cpp ? I'd like to use the AlphaBlend() we got from win32_factory.cpp.
Gildas Bazin [Tue, 27 Jan 2004 14:05:33 +0000 (14:05 +0000)]
* modules/packetizer/mpegvideo.c: fixed major bug where the first frame could be sent out with a null dts.
* src/stream_output/stream_output.c: guard against non-dated packets in sout_InputSendBuffer().
Derk-Jan Hartman [Tue, 27 Jan 2004 07:05:10 +0000 (07:05 +0000)]
* VobSub demuxing. Almost working i think, but the ps parsing isn't going to well yet.
fen, anymore tips? :)
There seems to be some trouble with bufferoverflows atm and
spudec doesn't like the data it is being fed:
Eric Petit [Mon, 26 Jan 2004 18:30:37 +0000 (18:30 +0000)]
All: attempt for an OpenGL video output for OS X. Enable --macosx-opengl
to give it a try (QT is the default method).
+ Known issues: no fullscreen yet, memory leaks, ugly code, ...
+ Known goodies: it's a few % faster than QT here (playing a DVD). If
experienced OpenGL and Altivec programmers could have a look and
give some advice, I guess the performance increase might become
noticeable.
Eric Petit [Mon, 26 Jan 2004 16:54:56 +0000 (16:54 +0000)]
+ All: added Altivec-optimized i420 to yuy2 conversion. It isn't used
yet as Quicktime handles i420 pictures, but it will be when I've
cleaned the OpenGL output I'm working on (to be commited soon).
Cyril Deguet [Sun, 25 Jan 2004 23:04:06 +0000 (23:04 +0000)]
* all: save the theme configuration at exit (theme path and
position/visibilty of the windows)
* parser/xmlparser.cpp: fixed a segfault when the file cannot be opened