Commit Graph

250 Commits

Author SHA1 Message Date
Damien Fouilleul
4f5b5ee95c - since DIR* on win32 is mapped to a private data type, rewinddir(), seekdir() and telldir() must also be mapped to their vlc_ equivalent. Should fix ticket #926 2007-01-08 00:41:45 +00:00
Clément Stenac
65d2183365 Add facilities to report and enrich error messages.
The idea is that a given error should be reported only once to the user.
At the moment, for example, we can get:
- "no suitable access module" (printed by module_Need)
 - "unable to create access" (printed by input/access)
 - "unable to open stream" (printed by input/input)
 - ...

The facilities provided here are:
* msg_StackSet( code, message ) : "throw" a new error
* msg_StackAdd( message ) : Append a message allowing to trace the message
* msg_StackMsg() : Retrieve the message

So, in the previous example, module_Need would msg_StackSet( code, "no
suitable access module"), then input/input would add "unable to create
access" and finally, input/input can print the "unable to open stream:
unable to create access: no suitable module" message.

The three functions are context-free, you don't need a vlc_object, so
that we can add verbose error reporting everywhere.
2006-12-22 21:14:11 +00:00
Rémi Denis-Courmont
96249f8f98 Do not redefine vlc_wclosedir (Close #893) 2006-12-10 20:02:03 +00:00
Clément Stenac
d3fe7f2879 A bit of headers cleanup
* Headers in include must contain the structures and prototypes needed
  by the plugins and should be named vlc_*.
* Headers in include/vlc must contain the structures and prototypes
  needed by external libvlc clients

* Moved and renamed some things in headers. 
   - Removed vlc_cpu.h, vlc_error.h (merged in vlc_common)
   - Removed snapshot.h (merged in vlc_vout.h)
   - Removed vlc_spu.h (merged in vlc_osd.h)
   - Removed intf_eject.h and vlc_interaction.h (merged in vlc_interface)
   - Moved all internal headers to src
   - Merged vlc_video.h and video_output.h and move private things to src
   - Removed vlc/intf.h, vlc/aout.h, vlc/vout.h, vlc/decoder.h and vlc/input.h
     (meta headers for use in modules, and often implying too large 
     dependencies)
* Removed some useless dependencies
* Unexported a bunch of functions and structures used only in src/
  (--> Still some work here)
* Finally made input_thread_t and input_source_t (mostly) private. 
  Added input_GetItem to fetch the input_item of an input_thread
* Cleaned up deprecated entries in vlc_symbols.h and bumped up symbol 
  prefix

This commit has a 99% probability of breaking the build, 0.1% of killing
your cat and 0% of getting you hot chicks.
2006-11-26 14:20:34 +00:00
Rémi Denis-Courmont
9f30d0acf0 Non-libtool fix attempt 2006-11-25 14:19:50 +00:00
Rémi Denis-Courmont
721f2cb11e Try to fix linking 2006-11-25 11:25:45 +00:00
Rémi Denis-Courmont
2f68055094 Attempt to use wide directory indexing on Win32
Might break stuff, but I cannot test much because of DBus vs Win32 breakage(!)
2006-11-25 09:59:49 +00:00
Rémi Denis-Courmont
853edfd0ea Don't export externally unused symbols 2006-11-25 09:11:20 +00:00
Damien Fouilleul
3ebd0d5b74 - better fix for DIR typedef error 2006-11-22 12:48:17 +00:00
Rafaël Carré
5593777b3f Revert [17878], that must not be made in libvlc, but rather in vlc
Need to get command line options in vlc.c (ref #505)
2006-11-21 16:47:14 +00:00
Rafaël Carré
ade91b2795 Initial support of one instance mode on systems running D-Bus 2006-11-19 22:46:25 +00:00
Marian Durkovic
ce6d823658 Fix detection of FreeBSD version (the previous one doesn't seem to work) 2006-11-16 13:41:17 +00:00
Rémi Denis-Courmont
1694eb692b Fix typo 2006-11-15 19:36:26 +00:00
Rémi Denis-Courmont
95db5344b3 Use lldiv replacement on FreeBSD < 5.0 (fixes #840) 2006-11-15 19:35:59 +00:00
Rémi Denis-Courmont
14532988cf Really fix the stat warning (tested on Mingw32) 2006-11-13 15:25:50 +00:00
Rémi Denis-Courmont
955f129327 Try to fix the obnoxious _stati64 warning 2006-11-12 20:12:29 +00:00
Rémi Denis-Courmont
34bd463f8d Add VLC_INTERNAL, like VLC_EXPORT except it does not export 2006-11-12 16:18:31 +00:00
Rémi Denis-Courmont
7c9438e94f Add some const 2006-11-04 15:18:24 +00:00
Clément Stenac
d3217fc729 Clean up and improve core handling for album art. Still only "always fetch" implemented 2006-10-23 21:02:45 +00:00
Rémi Denis-Courmont
cec9172253 Declare extern vlc_symbol_... explicitly 2006-10-22 19:25:25 +00:00
Rémi Denis-Courmont
e634fbcf2b const rulez 2006-10-21 17:49:35 +00:00
Rémi Denis-Courmont
0d7f2354e5 Fix a few warnings 2006-10-21 12:28:52 +00:00
Clément Stenac
266fb28cd7 Dynamic array with log allocation 2006-10-19 21:00:14 +00:00
Antoine Cellerier
62fffadfea Rename all sout_Cfg* stuff to config_Chain* (as it isn't really sout specific) 2006-10-01 16:08:37 +00:00
Antoine Cellerier
2d90e869b4 Some more (mostly) untested stuff:
* Secondary queue items now have a b_fetch_art flag
 * You can use the playlist_AskForArtEnqueue function to ask for art from an interface. This will enqueue at the begining of the secondary queue
 * other stuff which i don't remember :)
 * (fix issues with previous (and unrelated) DIR_SEP commit)
2006-09-24 22:01:28 +00:00
Clément Stenac
f17e985a58 Skeleton for taglib art downloader and tags writer 2006-09-24 15:20:49 +00:00
Antoine Cellerier
937b624960 Define DIR_SEP only once 2006-09-24 15:11:33 +00:00
Antoine Cellerier
560105460d Start of meta engine stuff. src/input/input.c needs to be fixed a bit. I'll finish it today. @zorglub: now you have to use the psz_arturl meta to display stuff in the interface. 2006-09-23 15:47:53 +00:00
Clément Stenac
f485214f09 For consistency, remove references to vlc from libvlc
Also, make it clearer what is shared and instance-specific

So,
libvlc_t ==> libvlc_global_t
vlc_t ==> libvlc_int_t (internal instance)

p_object->p_libvlc ==> p_object->p_libvlc_globale
p_object->p_vlc ==> p_object->p_libvlc

VLC_OBJECT_VLC ==> VLC_OBJECT_LIBVLC

And by the way, there is some cleanup required :) (ie, some things are created in the global object instead of the instance-specific one)
2006-09-15 14:31:51 +00:00
Clément Stenac
6192caae4a * Handle parameters in streaming profiles
* Remove i18n_string stuff
2006-09-13 06:22:23 +00:00
Rémi Denis-Courmont
0b1d6a5e82 Remove evil kludge.
Better fix broken code that would rely on this.
2006-09-02 11:20:07 +00:00
Clément Stenac
1fc13bdebe Template for profile parser 2006-08-24 17:52:35 +00:00
Clément Stenac
23d27c9c9c * B-search macro
* Redo dictionnary handling to remove recursion and bugs
2006-08-19 16:19:31 +00:00
Clément Stenac
093de8561e Interaction cleanup, remove some unused functions, factorize some code, ... 2006-08-02 19:51:46 +00:00
Clément Stenac
89471fa0ae Some initial work for streaming profiles
+ some misc test cleanup
2006-07-28 13:28:08 +00:00
Clément Stenac
a8fcedd2dd Remove some code duplication 2006-07-19 11:53:18 +00:00
Clément Stenac
f0ddd61576 Add a bunch of helper functions/macros and start using them:
* malloc with NULL check
* file extension check
* check if a demux was forced
* try peeking, and check what we poke
* init standard demuxer fields
* create packetizers
2006-07-18 17:08:18 +00:00
Clément Stenac
dea4749b29 * Create new types for device probing
* Beginning of core implementation
2006-06-22 10:03:32 +00:00
Clément Stenac
3fa2448ecc HAL probing module 2006-06-21 14:22:22 +00:00
Clément Stenac
8f973a0b05 Fix playlist crasher and simplify a few things
(Remove ITEMPLAY method, which had become redundant)
2006-05-31 20:40:54 +00:00
Clément Stenac
ed0b72e371 Merge back branch 0.8.6-playlist-vlm to trunk.
What is currently broken:
 * Some playlist demuxers (shout, dvb and pls)
 * DAAP
 * BeOS playlist
 * GPE playlist, I suppose

What has some trouble:
 * Meta handling in several demuxers (most notably TS)
 * Skins2 playlist (doesn't refresh correctly)
 * OS X playlist (see bigben's latest commits)
2006-05-14 18:29:00 +00:00
Rémi Denis-Courmont
83d3320758 OpenBSDish strlcpy() 2006-04-29 14:30:49 +00:00
Rémi Denis-Courmont
be639de221 Clean up vlc_iconv prototype 2006-03-22 11:14:24 +00:00
Rémi Denis-Courmont
5ac87d09be Always link libintl through libvlc on Win32 2006-03-12 12:44:06 +00:00
Rémi Denis-Courmont
18b4556f85 Propagate changes from previous commit 2006-03-12 10:41:31 +00:00
Rémi Denis-Courmont
6e14bd65d2 Remove broken lldiv check and only use lldiv replacement on BeOS 2006-03-10 17:57:31 +00:00
Eric Petit
abed251569 Force lldiv emulation on BeOS 2006-03-08 23:52:35 +00:00
Eric Petit
1b73c740f3 Emulate C99's lldiv() if necessary 2006-03-08 23:32:08 +00:00
Rémi Denis-Courmont
b641f67d05 WxWidgets: use wraptext in UTF-8 mode as that is the codeset for gettext
core: remove unused ISO-8859-centric monobyte mode from vlc_wraptext()
2006-03-06 10:25:12 +00:00
Rémi Denis-Courmont
5983a04266 - Call dgettext directly with shared libvlc and libtool
- Remove vlc_dcgettext in those cases
2006-03-05 15:32:49 +00:00