summaryrefslogtreecommitdiff
path: root/src/xine-engine/load_plugins.c
AgeCommit message (Collapse)Author
2009-11-30Trim trailing space & reduce space+tab.Darren Salt
2009-04-13When writing catalog.cache, use a new file & atomically replace the old one.Darren Salt
2009-01-14Avoid printing "plugin foo found" if the filename is null.Darren Salt
(Bug 182)
2008-11-20Some warning fixes: XINE_FORMAT_SCANF, statics in headers, consts, ...František Dvořák
Add warning flags to the DEBUG_CFLAGS too.
2008-11-07Fixed segfault on start when using XINE_PLUGIN_PATH.František Dvořák
2008-07-09Don't try to load static libraries on mingw32Matthias Ringwald
dlopen of a static library causes a Windows error dialog otherwise. just ignore *.dll.a in plugins folder
2008-06-20Read the MIME type from the plugin & use it for demuxer selection (if by extn).Darren Salt
text/plain is specifically filtered out because it could cause lots of false positives, at least with http; web servers tend to default to text/plain for unknown types.
2008-06-09Avoid false positives when looking up demuxer by MIME type.Darren Salt
These occur where the MIME type used as the key is a substring of a type in some plugin's MIME type list but is not an exact match.
2008-05-23Mark initialisation functions with malloc attribute.Diego 'Flameeyes' Pettenò
All the initialisation functions returning a new object instance that was allocated through malloc() or calloc() can get the malloc attribute so that the compiler can optimise their call.
2008-05-22Merge fix for 3466031414a7.Diego 'Flameeyes' Pettenò
2008-05-22Copy all of the supported types not just 1/4 of it (4 being the size of ↵Diego 'Flameeyes' Pettenò
uint32_t).
2008-05-21Fix typo that lead to crash.Diego 'Flameeyes' Pettenò
2008-05-09Rewrite and optimise xine_get_{file_extensions,mime_types}()Diego 'Flameeyes' Pettenò
Rewrite xine_get_file_extensions() and xine_get_mime_types() so that they share the joining code, and do one less loop over the list of plugins. Create a new _x_concatenate_with_string() function to convert an array of strings into a single string, which is called by both functions. --HG-- extra : transplant_source : %BC7%3D%C7%A5%AA%A6%BB%11%9A%94%F0%E9%F1V%B7%29%C68h
2008-05-09Use asprintf() rather than sn?printf() + strn?dup().Diego 'Flameeyes' Pettenò
Instead of duplicating a buffer after using sn?printf() on it, use asprintf() directly on the final variable.
2008-05-09Avoid loop for common memory operations (zeroing, copying, moving).Diego 'Flameeyes' Pettenò
Use the proper function for common memory operations (memset() for zeroing, memcpy() for copying, memmove() for moving), instead of looping through arrays. By extension, remove loops to reset arrays when they were allocated with calloc() and thus already zeroed.
2008-05-07Use strn?dup instead of alloc + strn?cpy.Diego 'Flameeyes' Pettenò
Whenever an allocated memory area is immediately filled in with a string through strcpy() or strncpy(), replace the calls with the appropriate strn?dup().
2008-05-07Use asprintf() rather than malloc() + sprintf().Diego 'Flameeyes' Pettenò
Using asprintf() instead of malloc() + sprintf() reduces the lines of code in xine-lib (moving the allocation to the C library or asprintf replacement), makes it safer to access the string and can also improve performance whenever the value returned by a function was used as parameter, as before it had to run the function twice in almost every case (once for strlen(), once for sprintf()).
2008-05-07xine_xmalloc() deprecation: replace its use with static and non-zero size.Diego 'Flameeyes' Pettenò
The xine_xmalloc() function is going to be deprecated, as its behaviour is rarely needed as such, and it's thus misused. With this, almost all uses of xine_xmalloc() with static size (for instance the value returned by sizeof()) or with a size that is guaranteed not to be zero (like strlen()+1) are replaced with calls to either calloc(1, ...) or malloc(). malloc() is used whenever the allocated memory is going to be immediately overwritten, while calloc() is used in every other case, as it sets the whole memory area to zero. --HG-- extra : transplant_source : %8F%98%EC%02%1E%83%F0s%06X%83C%205Y%80%B12%CC%E1
2008-04-19Replace xine_xcalloc usage with calloc, for the revisions transplanted from ↵Diego 'Flameeyes' Pettenò
1.2 series.
2007-04-14Use xine_xcalloc instead of xine_xmalloc when mutiplying the number of ↵Diego 'Flameeyes' Pettenò
elements by the size of the single element. (transplanted from 512894f517c423fed0cadeca0d46c6d909403106) --HG-- extra : transplant_source : Q%28%94%F5%17%C4%23%FE%D0%CA%DE%CA%0DF%C6%D9%09%401%06
2008-04-11Add a function for listing video output plugins of the given type(s).Darren Salt
2008-02-07Reverse the order in which the plugin dirs are scanned; remove a stray printf.Darren Salt
2008-02-06Change from release numbering to ABI numbering for the plugin directory.Darren Salt
This is to avoid having to rebuild external plugins for each new release. --HG-- extra : transplant_source : %C2%3EF%0B%EF%16%40K%FD.%EB9%E07%CB%97GhU%98
2007-11-10Delete most of the CVS $Id$/$Log$ lines.Darren Salt
--HG-- extra : transplant_source : %E0%D0%C5%8B%BEU%DD%24%5D7%1F%ADV%AD%EB%23%CBU%80%EB
2007-11-09Update FSF address on non-contributed code and COPYING files.Diego 'Flameeyes' Pettenò
For contributed code, leave whatever the version we last synced for is using to make simpler future syncs.
2007-06-04fallback to none output when the device is unpluggedMatthias Kretz
2007-04-08Mark various private arrays, structs & fn parameters as static and/or const.Darren Salt
Two of the modified files are headers, but each contains definitions as well as declarations and is only ever used once.
2007-02-19Fix building with LOG enabled.Diego 'Flameeyes' Pettenò
CVS patchset: 8602 CVS date: 2007/02/19 23:33:33
2007-01-18Handle strings coming from plugins as constants.Diego 'Flameeyes' Pettenò
CVS patchset: 8521 CVS date: 2007/01/18 23:30:18
2006-11-23When initializing the class of a video output pluginClaudio Ciccani
the visual type should be checked too. That because a plugin with the same id may support different visuals (e.g. xv -> VISUAL_TYPE_X11, xv -> VISUAL_TYPE_X11_2). CVS patchset: 8388 CVS date: 2006/11/23 21:05:31
2006-10-28new visual type XINE_VISUAL_TYPE_X11_2 with configurable X11 locking.Miguel Freitas
allow developers to use special locking support of their plataform (like QT library mutex). note: only xshm has been ported. based on Christoph Pfister's patch. CVS patchset: 8350 CVS date: 2006/10/28 17:02:51
2006-10-16Fixed several warnings (but warnings due to APIs not solved).František Dvořák
CVS patchset: 8344 CVS date: 2006/10/16 22:18:24
2006-09-26When there's no plugin to replace, output a log, and skip the plugin ↵Diego 'Flameeyes' Pettenò
entirely, to avoid an off-by-one in decoder_map. Found by Coverity Scan CID 122. CVS patchset: 8304 CVS date: 2006/09/26 21:32:08
2006-08-12don't report extensions/mimetypes if required decoder is missingMiguel Freitas
(implemented for mp3 demuxer only) CVS patchset: 8177 CVS date: 2006/08/12 01:43:26
2006-07-21Fix building with LOG enabled.Diego 'Flameeyes' Pettenò
CVS patchset: 8137 CVS date: 2006/07/21 03:31:42
2006-06-20Fix generic warnings.Diego 'Flameeyes' Pettenò
CVS patchset: 8063 CVS date: 2006/06/20 00:35:07
2006-04-08Ancient platforms support:František Dvořák
- rint, lrint, M_PI (ffmpeg and goom) - avoid mkdir warnings - check for older _GUID_DEFINED too - ressurected generating inttypes, cleaned public os_types.h - moved function redefiniton used only in the old MSVC to central place Windows port update: - build internal ffmpeg: - workaround 'near' keyword problem - proper using __declspec(dllimport) Other changes: - LIBFFMPEG_CFLAGS --> LIBFFMPEG_CPPFLAGS CVS patchset: 7964 CVS date: 2006/04/08 16:42:23
2006-02-14Fix a compiler warning.Darren Salt
CVS patchset: 7897 CVS date: 2006/02/14 18:47:46
2006-02-01Fix the sorting of plugin priorities, as per Thibaut's mailBastien Nocera
"The plugin_node_comparator function used by the plugin sorted arrays sorts the plugins by priority ASC instead of DESC." CVS patchset: 7860 CVS date: 2006/02/01 15:11:42
2006-01-27Adapt the engine to the new list code.Thibaut Mattern
CVS patchset: 7848 CVS date: 2006/01/27 07:46:09
2005-11-28*BUGFIX*František Dvořák
Improved cross-compiling: detect and precedence of the host-specific libs W32dll: enabled by platforms as originaly, user can override it Fixed shell errors in the Makefile of the hackersguide Detect the place of SDL header independently on platform Fixed spelling in CDDA, include the header sys/param.h if available Fixed format strings (fix warnings (or even bugs) on Gentoo/FreeBSD) CVS patchset: 7815 CVS date: 2005/11/28 12:24:56
2005-09-19*BUGFIX*František Dvořák
added missing mutex init in xine_ticket (fixes pause assert with win32-pthreads) added missing destroys due to pthread doc spells and houskeeping use directx of older versions too, possibility to use xine w/o HW accel CVS patchset: 7738 CVS date: 2005/09/19 16:14:02
2005-09-11make Alien happier ;-)Miguel Freitas
audio can be heard with non-1X speeds if audio.synchronization.slow_fast_audio is set CVS patchset: 7726 CVS date: 2005/09/11 22:07:48
2005-09-11_x_load_video_output_plugin() by Jason TackaberryMiguel Freitas
CVS patchset: 7723 CVS date: 2005/09/11 00:11:09
2005-08-30Better names for directory separators.František Dvořák
CVS patchset: 7715 CVS date: 2005/08/30 15:27:58
2005-08-29*BUGFIX*František Dvořák
Windows ports updates: - finished M$VC port update - moved xine plugins back to normal location for Windows ports, added relative directories (used relative to ${prefix}), make sure it's thread-safe (but it's still hacky) - fixed ugly bug with loading plugins, when working drive was differrent from plugins directory directory - directory and subdirectory separator called as platform specific - fix crash with newer win32 pthread (missing mutex_init in vo plugin), yes! - small doc update CVS patchset: 7712 CVS date: 2005/08/29 15:28:16
2005-08-25*BUGFIX*František Dvořák
Windows ports fixes and improvements due to my current work on toxine: - first experiments with external win32 pthreads, more portable code (pthread_t may be a struct) - headers refactored - moved dirent win32 replacement to lib/, hide it for frontends, used system version, if found, not used non-POSIX dirent->d_reclen (this item doesn't work in MinGW), fix memleak in dvb - separated settings for postproc and avcodec when using external ffmpeg - check for malloc.h in public xine.m4, used it conditionally in xine headers - replaced random() by POSIX more common rand() - prevent one segfault in directx vo plugin, if fails - M$VC port update CVS patchset: 7709 CVS date: 2005/08/25 15:36:29
2005-07-18fix problem with static plugins reported by Jason TackaberryMiguel Freitas
CVS patchset: 7659 CVS date: 2005/07/18 01:46:02
2005-07-17Fix filename string reallocation in plugin loader.Darren Salt
(Based on a patch from Stefan Bruens <lurch@gmx.li>.) CVS patchset: 7648 CVS date: 2005/07/17 16:52:14
2005-05-14**BUGFIX**Miguel Freitas
don't stop looking for plugins just because one of them has failed to initialize. fix the problem of xine not loading anything (first plugin was gnome-vfs and it doesn't work here) CVS patchset: 7536 CVS date: 2005/05/14 16:00:40