1
mirror of https://code.videolan.org/videolan/vlc synced 2024-07-21 07:24:15 +02:00
Commit Graph

43 Commits

Author SHA1 Message Date
Rémi Denis-Courmont
99fab9089e Don't include config.h from the headers - refs #297.
Missing some cases that I could not test.
Also ffmpeg/chroma.c is locked, so I can but leave it broken.
Fix is for the remaining modules is obvious and the issue is easy to detect.
2008-01-23 21:50:58 +00:00
Damien Fouilleul
658b4f830b vlc security: As i've seen very little improvement on that front, i've decided to check in my take on handling the problem of managing harmful options. I'm pretty sure this is going to be very controversial, but I think my approach is quite simple and yet very effective Anyway, my approach makes the following assumptions:
- most vlc options are considered safe, only a handful are particularily unsafe and need be declared as such in their definition (they mostly deal with writing to an output file or URL)
- unsafe options are only considered potentially harmful when used as an input option, ie. the ':option' format. Configuration options are always considered safe 'i.e --option' 
- unsafe options are associated with a global security policy, which dictates how these are handled. At the moment, The policy can be either block, allow or prompt, and is set using the '--security-policy' option (which itself is considered unsafe ;)

the policy can be set by the user at the command line or in the preferences, it curently defaults to prompt, which is the desirable state for deskop use. However, it can be overriden depending on context, for example, the activex and mozilla will force the security-policy to block regardless of preference settins.

the code is a bit rough at the moment, but i will optimize/clean it up if the dev community this approach is worth keeping.

try the following example, and you'll see quickly what i mean:

./vlc -vvv <a mrl> :sout=#transcode{vcodec=mp1v,vb=1024,acodec=mpga,ab=192}:standard{mux=ts,dst=vlc-output.ts,access=file}"

Enjoy,
   Damien
2008-01-16 19:30:12 +00:00
Rafaël Carré
5d7d4cf597 // is valid inside "", despite what my vim says 2007-09-13 16:26:28 +00:00
Rafaël Carré
c175e0b17c Makes logger html output « Valid HTML 4.01 Strict! », thanks to dionoea 2007-09-13 16:24:27 +00:00
Rafaël Carré
cefa801898 logger: Sets HTML encoding to UTF-8 2007-09-13 11:01:40 +00:00
Rafaël Carré
6ee1e193fd Removes trailing spaces. Removes tabs. 2007-09-10 18:56:52 +00:00
Antoine Cellerier
16f32e1500 On OSes other than Windows, Mac OS X and BeOS (so it's Linux) comply with the XDG Base Directory Specification version 0.6. The old configuration file (vlcrc) will be copied to the new location. Other data like caches will have to be rebuilt (the album art cache in VLC was new in 0.9.0 so it's ok to lose it). Closes #1267 2007-09-09 16:10:45 +00:00
Rémi Denis-Courmont
1b67b68abd #include order 2007-09-05 13:51:21 +00:00
Rémi Denis-Courmont
9e595c955f Remove stdio while we're at it.
Finally rid of the strcasestr warning
2007-08-20 19:23:10 +00:00
Rémi Denis-Courmont
e40d134c69 Remove _GNU_SOURCE and string.h too 2007-08-20 19:10:23 +00:00
Rémi Denis-Courmont
81c5ac29fa Remove stdlib.h 2007-08-20 19:08:22 +00:00
Clément Stenac
80fde19dfe More cleanup 2006-12-24 14:18:21 +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
Christophe Mutricy
dc8b128a9f forward port [17012] and make update-po 2006-10-09 22:37:29 +00:00
Sam Hocevar
b5c956997c * modules/misc/logger.c: don't truncate logfile upon creation. 2006-10-04 17:13:02 +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
982c2c891a Fix a bunch of warnings and errors 2006-08-03 16:58:10 +00:00
Rémi Denis-Courmont
6f7916ea89 Remove unused variable 2006-04-02 09:44:19 +00:00
Christophe Mutricy
07b147145c misc/*: 2nd lecture. refs #438 2006-03-25 23:10:43 +00:00
Christophe Mutricy
c1591683ac logger.c: Compile fix 2006-03-22 14:14:10 +00:00
Clément Stenac
f0ffeb173a Strings review in misc/ except dummy and win32text (Refs:#438) 2006-03-22 12:14:30 +00:00
Clément Stenac
f22bfe8059 Don't use %f in RRD output (Closes:#582) 2006-03-11 19:23:58 +00:00
Christophe Mutricy
98c55d6db6 all: move the logger option from video to interface and advanced 2006-03-09 19:55:40 +00:00
Rémi Denis-Courmont
e9fb749afd All: missing #include "charset.h" 2006-02-18 20:34:32 +00:00
Rémi Denis-Courmont
921de760d6 Further fopen() unicode fixes (refs #528)
skins2 and galaktos remain as I'm not sure how they (don't?) handle
encodings.

http interface URL were purposedly not made to use Unicode. I'm open to
suggestions on that one.
2006-02-13 10:30:30 +00:00
Sam Hocevar
b76d7cf628 * Got rid of SYS_DARWIN everywhere. 2006-02-01 13:01:06 +00:00
Sigmund Augdal Helberg
66f6a9141d logger.c: put in header prefix for syslog output (still missing for text
and html)
2006-01-31 15:11:08 +00:00
Clément Stenac
226344134e RRD output (Refs:#473)
This is a quick hack, which should in the end be merged in a way to expose stats
2006-01-28 10:56:47 +00:00
Clément Stenac
a1e597bf00 * Make ParseOption (from input) a global service (var_OptionParse)
* Add i_options/pp_options to intf_Create

* add global options to enable file-logging and syslog (Refs:#508)
2006-01-22 17:12:24 +00:00
Antoine Cellerier
2cb472dba0 FSF address change. 2006-01-12 23:10:04 +00:00
Clément Stenac
a078354921 Add support for several message queues - please test
Initial support for registering and handling some shared stats
2006-01-04 22:29:53 +00:00
Jean-Paul Saman
ef68c415e4 Initialise i_priority to LOG_INFO as default value in case p_msg->i_type has an invalid value. 2005-12-28 18:56:43 +00:00
Clément Stenac
f2b775f5d1 Add ability to log to syslog (Closes:#334) 2005-11-29 23:12:52 +00:00
Christophe Massiot
b9baae25a8 * modules/control/http.c: Support for ~ in foreach directory. 2005-08-05 18:44:47 +00:00
Rémi Denis-Courmont
fe087a3828 Make Zorglub less unhappy 2005-07-09 06:17:09 +00:00
Rémi Denis-Courmont
85b29bdc28 Copyright fixes
(da big courmischage)
2005-07-08 18:12:44 +00:00
Clément Stenac
40483857da Take logger back to control modules 2005-04-23 22:13:35 +00:00
Clément Stenac
44d19ee25e * A few string and organization fixes in preferences
* Update the LIST
* Coding style fixes
2005-01-29 15:22:53 +00:00
Clément Stenac
a90a19a6b0 Improvements to preferences
* Each module can declare a "human-readable short name" with set_name
* Modules are sorted by category (set_category, set_subcategory).
  Modules configs can be separated by set_section()
* Separated audio-filter and audio-visual
* Separated extraintf and control
* New command and widget : add_module_list() for comma-separated modules
* Vfilters now use "," as separator
2004-12-11 14:45:46 +00:00
Gildas Bazin
6a2acb97ef * modules/access/mms, modules/demux/mp4, modules/misc/logger.c: WinCE compilation fixes. 2004-10-08 10:36:25 +00:00
Felix Paul Kühne
d5d59ea9a5 * modules/control/telnet.c: removed translation of "VLM"
* modules/gui/pda/pda.glade: removed translatable-flags of various untranslatable strings like "127.0.0.1" or "avi"
* modules/gui/wxwindows/wizard.cpp: minor string-corrections
* modules/misc/logger.c: more minor string-corrections
* modules/misc/sap.c: ditto
* src/libvlc.h: ditto
* po/de.po: updated german translation
2004-04-16 18:41:00 +00:00
Derk-Jan Hartman
d5c4e1bf28 * src/interface/interface.c
- spelling fix
  - added telnet intf to 'Add Interface'
* modules/misc/logger.c:
  - on Mac OS X, use ~/Library/Logs to write logger intf output.
* ALL
  - Added 'Add Interface' to Mac OS X build. Now you can finaly quicklaunch
  the SAP intf.
2004-03-27 17:36:46 +00:00
Clément Stenac
6265a3ae74 * Remove directories with only one source file inside
* Drop the old scope plugin (not ported to aout3)
2004-03-06 15:24:37 +00:00