Add vlc_get_meta function. Argument can be:
'ARTIST' -> gets the artist
'TITLE' -> gets the title
'ALBUM' -> gets the album name
'something else' -> get 'something else' ... meta labels are translated so don't expect this to be portable.
* skins2/controls/ctrl_tree.cpp: Check that the iterator is not end() before using it...
This fixes random freezes when loading skins with a PlayTree control on Windows, and probably some crashes as well.
* all: added a INI file parser in skins2. For instance if the file
with id "pledit" (defined in the new tag "<IniFile>" contains:
[Text]
Normal=#FFFFFF
it will create a constant "pledit.Text.Normal" with value "#FFFFFF"
* winamp2.xml: use the "pledit.txt" file to have correct playlist colors
* all: added a new skin text variable "$S" to get the audio sample rate
(in KHz) + fixed the bitrate ("$B") variable to use only the audio bit rate.
* winamp2.xml: updated the winamp2 skin
Do not provide a broken language option on Linux and similar OSes
where the user normally use LANG, LANGUAGE, etc to define his/her
language(s). It didn't work anyway (refs #638).
* Support for Topfield .rec recordings. It's MPEG-TS with an exceptionally large (1MB) header in front of it.
I tried adding the info in the header to meta, but the existing documention seems incorrect or at least incomplete. Instead we just accept the start of the header as identifying a MPEG-TS file, and skipping the header.
BTW this header is again an example of very bad format design. It is using fixed length strings, for which the used buffers clearly are not null'ed before written with new information. As such i was able to determine which programs were running before this program was recorded :D
Also a PID printed to a field was clearly not printed to null'ed memory, causing an invalid (too high) PID number to be in the field. You'd think the least someone could do when designing something like this, would be to analyze a hexdump of your own custom header.
Benjamin Pracht [Fri, 14 Apr 2006 13:22:44 +0000 (13:22 +0000)]
* What is the point in having a detection for libvc1 if we don't have a libvc1 module ? Moreover, that prevents jlj's patch with the module from applying.
* modules/access/pvr/pvr.c: The radio API in ivtv-0.6.1 has changed : now
you are supposed to pass frequency * 16000 instead of frequency * 16.
This is sooo coherent.
* Fix subtitle alignment if we don't have styles. fixes #619
I chose to re-add the align paramter to the subpicture region struct, since adding a style struct for every single subpicture for just an alignment seemed to be overkill to me.
* modules/control/http/macro.c: Add slashes in the MVLC_ADD macro for
backwards compatibility with the old http intf (anyway MVLC_ADD is
obsoleted by RPN function playlist_add).
I was actually trying to understand why command line option parsing on my computer with self compiled VLC behaves as "If the first character of optstring is '+' or the environment variable POSIXLY_CORRECT is set, then option processing stops as soon as a non-option argument is encountered." while neither of these conditions is true (see the while( getopt_long( ... ) != EOF ) loop).
Small illustration:
./vlc -vvv -I dummy input.ts --color
All options before the first non option argument work as expected (-vvv and -I dummy). All options after the first non option argument are also interpreted as being non option arguments.
Help would be appreciated.
(I've already had reports of other people having the same kind of issues)
Felix Paul Kühne [Tue, 11 Apr 2006 12:37:47 +0000 (12:37 +0000)]
intf.m: * we can't localise empty strings, so don't put an error when trying to do so, but just a warning
* be a bit nicer and return @"" instead of NULL strings
- this fixes the display of certain modules in the preferences such as the parametric equaliser
* Fix ffmpeg libavformat linkage when we don't use --with-ffmpeg-tree (this fixes Flash playback)
* Add Shorten codec. This refs #632 It doesn't seem to work, but that might be an endianness issue. will someone please check with this sample? http://www.mplayerhq.hu/MPlayer/samples/A-codecs/lossless/luckynight.shn
Win32 specific changes: Add --started-from-file option to tell VLC that it was started by clicking on a file (or disc). Add --one-instance-when-started-from-file option to tell VLC to use one instance mode when --started-from-file is used. See replies to r15125 for an explanation.