vlc.git
11 years agoRemove unneeded string.
Jean-Baptiste Kempf [Sat, 14 Mar 2009 13:13:34 +0000 (14:13 +0100)]
Remove unneeded string.

11 years agoAdded missing lock for INPUT_EVENT_ABORT check (input).
Laurent Aimar [Thu, 12 Mar 2009 23:29:19 +0000 (00:29 +0100)]
Added missing lock for INPUT_EVENT_ABORT check (input).

11 years agoReworked and improved TS ES with stream_type equals to 0x06.
Laurent Aimar [Thu, 12 Mar 2009 21:50:26 +0000 (22:50 +0100)]
Reworked and improved TS ES with stream_type equals to 0x06.

11 years agoCosmetics (ts).
Laurent Aimar [Thu, 12 Mar 2009 19:30:46 +0000 (20:30 +0100)]
Cosmetics (ts).

11 years agoSend INPUT_EVENT_ABORT from input thread instead of input_StopThread.
Laurent Aimar [Thu, 12 Mar 2009 19:13:29 +0000 (20:13 +0100)]
Send INPUT_EVENT_ABORT from input thread instead of input_StopThread.

It is cleaner to not send event from caller threadand will fix a deadlock in the
playlist code.

11 years agomacosx intf: switch a vlc_object_find to input_GetAout
Derk-Jan Hartman [Thu, 12 Mar 2009 15:47:25 +0000 (16:47 +0100)]
macosx intf: switch a vlc_object_find to input_GetAout

11 years agomacosx intf: aout leaks
Derk-Jan Hartman [Thu, 12 Mar 2009 15:46:57 +0000 (16:46 +0100)]
macosx intf: aout leaks

11 years agoavformat: lock avcodec
Rémi Denis-Courmont [Thu, 12 Mar 2009 15:41:02 +0000 (17:41 +0200)]
avformat: lock avcodec

This is ugly but we can do jack about this (short of forking ffmpeg).

11 years agoavcodec, switcher: use the global avcodec lock
Rémi Denis-Courmont [Thu, 12 Mar 2009 15:34:36 +0000 (17:34 +0200)]
avcodec, switcher: use the global avcodec lock

11 years agoAdd a centralized avcodec lock
Rémi Denis-Courmont [Thu, 12 Mar 2009 15:27:37 +0000 (17:27 +0200)]
Add a centralized avcodec lock

avcodec is used from at least three different plugins: avcodec,
switcher (which seems dead though) and indirectly in avformat. We need
to have a common interlock for all of these.

11 years agoqt_vlm: add some const for the QString.
Rémi Duraffort [Thu, 12 Mar 2009 14:45:38 +0000 (15:45 +0100)]
qt_vlm: add some const for the QString.

11 years agolibavutil callback cannot assume it has a VLC object
Rémi Denis-Courmont [Thu, 12 Mar 2009 14:49:37 +0000 (16:49 +0200)]
libavutil callback cannot assume it has a VLC object

This fixes a crash from the avformat (de)mux.

11 years agoskins2: operator '=' return a reference.
Rémi Duraffort [Wed, 11 Mar 2009 19:11:40 +0000 (20:11 +0100)]
skins2: operator '=' return a reference.

11 years agoskins2: remove unused function.
Rémi Duraffort [Wed, 11 Mar 2009 18:48:29 +0000 (19:48 +0100)]
skins2: remove unused function.

11 years agovcdx: use ifdef instead of if.
Rémi Duraffort [Wed, 11 Mar 2009 18:01:51 +0000 (19:01 +0100)]
vcdx: use ifdef instead of if.

11 years agoqt4_sout: use references for const QString.
Rémi Duraffort [Wed, 11 Mar 2009 15:31:26 +0000 (16:31 +0100)]
qt4_sout: use references for const QString.

11 years agobda: fix potential uninitialized value.
Rémi Duraffort [Wed, 11 Mar 2009 13:04:43 +0000 (14:04 +0100)]
bda: fix potential uninitialized value.

11 years agozipstream: fix potential memleak.
Rémi Duraffort [Tue, 10 Mar 2009 13:59:55 +0000 (14:59 +0100)]
zipstream: fix potential memleak.

11 years agounused variables.
Rémi Duraffort [Mon, 9 Mar 2009 09:52:21 +0000 (10:52 +0100)]
unused variables.

11 years agox264: obsolete pre-scenecut option.
Jean-Baptiste Kempf [Wed, 11 Mar 2009 23:47:13 +0000 (00:47 +0100)]
x264: obsolete pre-scenecut option.

11 years agos/(void)p_e;/VLC_UNUSED(p_e);/
JP Dinger [Fri, 6 Mar 2009 12:22:27 +0000 (13:22 +0100)]
s/(void)p_e;/VLC_UNUSED(p_e);/

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
11 years agoMissing use of options in test.html added playlist items.
Vicente Jimenez Aguilar [Tue, 10 Mar 2009 16:53:00 +0000 (17:53 +0100)]
Missing use of options in test.html added playlist items.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
11 years agox264 Removed pre-scenecut definitions for build 67
Sabourin Gilles [Wed, 11 Mar 2009 23:05:53 +0000 (00:05 +0100)]
x264 Removed pre-scenecut definitions for build 67

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
11 years agoFixed some DVD menus.
Laurent Aimar [Wed, 11 Mar 2009 22:35:14 +0000 (23:35 +0100)]
Fixed some DVD menus.

11 years agoExport ES_OUT_GET_EMPTY which is needed for interactive video.
Laurent Aimar [Wed, 11 Mar 2009 22:20:26 +0000 (23:20 +0100)]
Export ES_OUT_GET_EMPTY which is needed for interactive video.

11 years agoFixed DecoderUpdatePreroll.
Laurent Aimar [Tue, 10 Mar 2009 21:56:41 +0000 (22:56 +0100)]
Fixed DecoderUpdatePreroll.

It makes prerolling less precise but it will avoid loosing valid
frame.

11 years agoAlmost wait-free snapshot handling in the vout thread
Rémi Denis-Courmont [Tue, 10 Mar 2009 20:44:23 +0000 (22:44 +0200)]
Almost wait-free snapshot handling in the vout thread

Using vlc_mutex_trylock(), we make sure that the video output thread
will not yield because of an incomplete snapshot request. It can still
yield in the very unlikely case that a thread is doing a snapshot
request while the video output thread finishes sorting SPUs _and_ there
already was a pending snapshot earlier.

11 years agoAdd vlc_mutex_trylock
Rémi Denis-Courmont [Tue, 10 Mar 2009 20:43:54 +0000 (22:43 +0200)]
Add vlc_mutex_trylock

11 years agoWin32: disable sprintf wrapper for %z
Pierre Ynard [Wed, 11 Mar 2009 11:13:18 +0000 (12:13 +0100)]
Win32: disable sprintf wrapper for %z

The macros are indeed a little bit too intrusive, and break calls to
QString::sprintf

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
11 years agoFixed a Bug in UpdateEdgeWeighting used wrong const for number of columns (copy and...
André Weber [Wed, 11 Mar 2009 18:13:27 +0000 (19:13 +0100)]
Fixed a Bug in UpdateEdgeWeighting used wrong const for number of columns (copy and paste error)

11 years agoFix libvlc_add_intf documentation
Rémi Denis-Courmont [Tue, 10 Mar 2009 21:16:03 +0000 (23:16 +0200)]
Fix libvlc_add_intf documentation

11 years agoFix progress dialog scale
Rémi Denis-Courmont [Tue, 10 Mar 2009 18:05:59 +0000 (20:05 +0200)]
Fix progress dialog scale

11 years agoWin32 compile fix
Rémi Denis-Courmont [Tue, 10 Mar 2009 17:29:00 +0000 (19:29 +0200)]
Win32 compile fix

11 years agoRTP out: improve soft-error handling
Rémi Denis-Courmont [Tue, 10 Mar 2009 16:54:03 +0000 (18:54 +0200)]
RTP out: improve soft-error handling

When the socket is congested, we should simply skip sending.
When there is a soft-error, we should resend and simply ignore.

Instead, we were dropping the socket if the failure remained on the
second try, which was always the case in the congestion scenario.
This should fix the socket dropping problem described at:
http://forum.videolan.org/viewtopic.php?f=4&t=56493

11 years agoDe-deprecate activex plugin.
JP Dinger [Tue, 10 Mar 2009 11:11:23 +0000 (12:11 +0100)]
De-deprecate activex plugin.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
11 years agoMove users of playlist_select() inline.
JP Dinger [Tue, 10 Mar 2009 12:22:06 +0000 (13:22 +0100)]
Move users of playlist_select() inline.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
11 years agoWin64: properly work around %z modifiers
Pierre Ynard [Mon, 9 Mar 2009 11:18:14 +0000 (12:18 +0100)]
Win64: properly work around %z modifiers

size_t are 64-bit long on Win64, adapt the wrapper for it

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
11 years agoWin32: remove uneeded %z hack
Pierre Ynard [Mon, 9 Mar 2009 11:19:10 +0000 (12:19 +0100)]
Win32: remove uneeded %z hack

Since we now have a general work around, this hack is not needed
anymore. This reverts commit 6f1a7b41f0f2175ceb1dd399b1ded5e30ffe704b

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
11 years agoWin32: wrappers to work around %z printf
Pierre Ynard [Tue, 10 Mar 2009 09:48:09 +0000 (10:48 +0100)]
Win32: wrappers to work around %z printf

This patch works around unsupported %z modifiers, by using a wrapper
around *printf functions that patches the format string on the fly. The
format string is duplicated, and "%z"'s are replaced by "%l"'s.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
11 years agoMissing return value
Rémi Denis-Courmont [Tue, 10 Mar 2009 16:05:32 +0000 (18:05 +0200)]
Missing return value

11 years agolibvlc_media_player_get_state: cache is between [0.0 .. 1.0] (spotted by Laurant...
Jean-Paul Saman [Tue, 10 Mar 2009 10:15:35 +0000 (11:15 +0100)]
libvlc_media_player_get_state: cache is between [0.0 .. 1.0] (spotted by Laurant Almar).

11 years agoactivex; sync test.html testpage with mozilla one.
Jean-Paul Saman [Tue, 10 Mar 2009 10:06:09 +0000 (11:06 +0100)]
activex; sync test.html testpage with mozilla one.

11 years agomozilla: cleanup test.html plugin testing page.
Jean-Paul Saman [Tue, 10 Mar 2009 09:40:38 +0000 (10:40 +0100)]
mozilla: cleanup test.html plugin testing page.

11 years agolibvlc_media_player_set_rate: Allow for changing playout rate.
Jean-Paul Saman [Tue, 10 Mar 2009 09:24:28 +0000 (10:24 +0100)]
libvlc_media_player_set_rate: Allow for changing playout rate.

This fixes a regression introduced in commit: 75adef44b044b9b81e593e74db857d6b2a7e4eaa

11 years agolibvlc api: detect when core is buffering.
Jean-Paul Saman [Mon, 9 Mar 2009 15:53:10 +0000 (16:53 +0100)]
libvlc api: detect when core is buffering.

11 years agoshare: ignore these files
Jean-Paul Saman [Mon, 9 Mar 2009 13:23:29 +0000 (14:23 +0100)]
share: ignore these files

11 years agoactivex: ignore this file
Jean-Paul Saman [Mon, 9 Mar 2009 13:21:30 +0000 (14:21 +0100)]
activex: ignore this file

11 years agomozilla: ignore these files
Jean-Paul Saman [Mon, 9 Mar 2009 13:20:23 +0000 (14:20 +0100)]
mozilla: ignore these files

11 years agoTry to interrupt fetcher thread as soon as possible.
Laurent Aimar [Mon, 9 Mar 2009 22:50:45 +0000 (23:50 +0100)]
Try to interrupt fetcher thread as soon as possible.

11 years agoFixed a possible fetcher deadlock.
Laurent Aimar [Mon, 9 Mar 2009 22:41:41 +0000 (23:41 +0100)]
Fixed a possible fetcher deadlock.

It could happen if the input_thread_t die before/without sending any
meta event.

11 years agoUse playlist_fetcher_t object instead of playlist one.
Laurent Aimar [Mon, 9 Mar 2009 22:38:22 +0000 (23:38 +0100)]
Use playlist_fetcher_t object instead of playlist one.

It avoid locking the whole playlist_t when fetching art, which can take a lot
of time...

11 years agoRemoved var_Get in subtitles.c
Laurent Aimar [Mon, 9 Mar 2009 22:37:49 +0000 (23:37 +0100)]
Removed var_Get in subtitles.c

11 years agoRemoved var_Get/Set in es_out.c
Laurent Aimar [Mon, 9 Mar 2009 20:53:45 +0000 (21:53 +0100)]
Removed var_Get/Set in es_out.c

11 years agoRemove var_Get/Set in input.c
Laurent Aimar [Mon, 9 Mar 2009 20:48:31 +0000 (21:48 +0100)]
Remove var_Get/Set in input.c

11 years agoDo not use the lock icon for scrambled stream.
Laurent Aimar [Mon, 9 Mar 2009 20:31:21 +0000 (21:31 +0100)]
Do not use the lock icon for scrambled stream.

Until a valid icon is designed/found, I used a DRM text label.

11 years agoFixed scrambled label state.
Laurent Aimar [Mon, 9 Mar 2009 20:29:50 +0000 (21:29 +0100)]
Fixed scrambled label state.

11 years agoFixed warning (dvb).
Laurent Aimar [Mon, 9 Mar 2009 19:52:01 +0000 (20:52 +0100)]
Fixed warning (dvb).

11 years agonew cannot return NULL per ISO C++
Rémi Denis-Courmont [Mon, 9 Mar 2009 20:23:37 +0000 (22:23 +0200)]
new cannot return NULL per ISO C++

11 years agoAdded a INPUT_EVENT_ABORT event to detect user requested abort.
Laurent Aimar [Mon, 9 Mar 2009 19:38:46 +0000 (20:38 +0100)]
Added a INPUT_EVENT_ABORT event to detect user requested abort.

11 years agodialog_ProgressSet: add an optional string parameter
Rémi Denis-Courmont [Mon, 9 Mar 2009 19:15:23 +0000 (21:15 +0200)]
dialog_ProgressSet: add an optional string parameter

11 years agovlc_object_hold is not needed (vlc_object_find already holds it)
Erwan Tulou [Sun, 8 Mar 2009 19:07:07 +0000 (20:07 +0100)]
vlc_object_hold is not needed (vlc_object_find already holds it)

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
11 years agostats: Add stream quality counters to Qt4 stastics by counting corrupted blocks and...
Jean-Paul Saman [Mon, 9 Mar 2009 12:46:09 +0000 (13:46 +0100)]
stats: Add stream quality counters to Qt4 stastics by counting corrupted blocks and discontinuities found.

Note the quality counters are mere indications and not exact reporting of how much blocks/discontinuity really occured. It will only tell you how often it is noticed.

11 years agoqt4: Catch INPUT_EVENT_PROGRAM updates and show icon when "program-scrambled" is...
Jean-Paul Saman [Mon, 9 Mar 2009 10:30:25 +0000 (11:30 +0100)]
qt4: Catch INPUT_EVENT_PROGRAM updates and show icon when "program-scrambled" is set.

11 years agoaccess_pvr: really fix the potential memleak.
Rémi Duraffort [Mon, 9 Mar 2009 08:38:25 +0000 (09:38 +0100)]
access_pvr: really fix the potential memleak.

11 years agorc: fix uninitialized value on win32.
Rémi Duraffort [Sun, 8 Mar 2009 22:42:21 +0000 (23:42 +0100)]
rc: fix uninitialized value on win32.

11 years agommstu: unneed call.
Rémi Duraffort [Sun, 8 Mar 2009 22:11:55 +0000 (23:11 +0100)]
mmstu: unneed call.

11 years agoaccess_directory: missing include.
Rémi Duraffort [Sun, 8 Mar 2009 22:07:16 +0000 (23:07 +0100)]
access_directory: missing include.

11 years agoaccess_pvr: fix potential memleak and factorize.
Rémi Duraffort [Sun, 8 Mar 2009 22:01:34 +0000 (23:01 +0100)]
access_pvr: fix potential memleak and factorize.

11 years agoaccess_v4l: take the option into account for "v4l_hue".
Rémi Duraffort [Sun, 8 Mar 2009 21:17:38 +0000 (22:17 +0100)]
access_v4l: take the option into account for "v4l_hue".

11 years agoaccess_v4l: factorization.
Rémi Duraffort [Sun, 8 Mar 2009 21:14:58 +0000 (22:14 +0100)]
access_v4l: factorization.

11 years agosccaess_screen: little cleaning.
Rémi Duraffort [Sun, 8 Mar 2009 20:55:38 +0000 (21:55 +0100)]
sccaess_screen: little cleaning.

11 years agoscreen_win32: little cleaning.
Rémi Duraffort [Sun, 8 Mar 2009 20:50:35 +0000 (21:50 +0100)]
screen_win32: little cleaning.

11 years agoscreen_win32: fix potential memleak and use DeleteDC instead of ReleaseDC.
Rémi Duraffort [Sun, 8 Mar 2009 20:46:14 +0000 (21:46 +0100)]
screen_win32: fix potential memleak and use DeleteDC instead of ReleaseDC.

11 years agoLIST: missing module.
Rémi Duraffort [Sun, 8 Mar 2009 18:28:53 +0000 (19:28 +0100)]
LIST: missing module.

11 years agoTypo
Rémi Denis-Courmont [Sun, 8 Mar 2009 21:29:24 +0000 (23:29 +0200)]
Typo

11 years agoFix XML encoding of our crappy XSPF extensions
Rémi Denis-Courmont [Sun, 8 Mar 2009 21:26:46 +0000 (23:26 +0200)]
Fix XML encoding of our crappy XSPF extensions

(still not handling errors correctly)

11 years agodirectory: Add XSPF node-extension support to our directory module.
Derk-Jan Hartman [Sun, 8 Mar 2009 21:06:43 +0000 (23:06 +0200)]
directory: Add XSPF node-extension support to our directory module.

Conflicts:

modules/access/directory.c

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
11 years agoRemove interaction core
Rémi Denis-Courmont [Sun, 8 Mar 2009 20:49:50 +0000 (22:49 +0200)]
Remove interaction core

One useless thread gone (the new subsystem does not need a thread).

11 years agoQt4: remove interaction support
Rémi Denis-Courmont [Sun, 8 Mar 2009 20:44:17 +0000 (22:44 +0200)]
Qt4: remove interaction support

11 years agoRemove intf_UserProgress
Rémi Denis-Courmont [Sun, 8 Mar 2009 20:37:13 +0000 (22:37 +0200)]
Remove intf_UserProgress

11 years agoUse dialog_Progress
Rémi Denis-Courmont [Sun, 8 Mar 2009 20:24:42 +0000 (22:24 +0200)]
Use dialog_Progress

11 years agoFixed a really bad type (input).
Laurent Aimar [Sun, 8 Mar 2009 20:10:21 +0000 (21:10 +0100)]
Fixed a really bad type (input).

11 years agoQt4: back-end for dialog_Progress
Rémi Denis-Courmont [Sun, 8 Mar 2009 20:06:29 +0000 (22:06 +0200)]
Qt4: back-end for dialog_Progress

11 years agoCosmetics
Rémi Denis-Courmont [Sun, 8 Mar 2009 20:06:23 +0000 (22:06 +0200)]
Cosmetics

11 years agodialog_Progress replacement for intf_UserProgress
Rémi Denis-Courmont [Sun, 8 Mar 2009 20:05:55 +0000 (22:05 +0200)]
dialog_Progress replacement for intf_UserProgress

11 years agoAdded 2 missing vlm files.
Laurent Aimar [Sun, 8 Mar 2009 19:38:41 +0000 (20:38 +0100)]
Added 2 missing vlm files.

11 years agoAdded basic VLM events.
Laurent Aimar [Sun, 8 Mar 2009 19:25:52 +0000 (20:25 +0100)]
Added basic VLM events.

 You need to attach a callback on the variable 'intf-event' of the vlm
object.
 Becarefull, as (always) inside an event callback you cannot call back
the object (here vlm).

11 years agoUpdate scrambled es state on change (TS).
Laurent Aimar [Sun, 8 Mar 2009 18:18:18 +0000 (19:18 +0100)]
Update scrambled es state on change (TS).

11 years agoCosmetics (input)
Laurent Aimar [Sun, 8 Mar 2009 17:21:08 +0000 (18:21 +0100)]
Cosmetics (input)

11 years agoAdded a ES_OUT_SET_ES_SCRAMBLED_STATE to warn the user about scrambled es.
Laurent Aimar [Sun, 8 Mar 2009 15:22:32 +0000 (16:22 +0100)]
Added a ES_OUT_SET_ES_SCRAMBLED_STATE to warn the user about scrambled es.

 The input variable "program-scrambled" will contain the state for the current
program only. If at least one es is scrambled then the whole program is.
 The associated event is INPUT_EVENT_PROGRAM.
 If necessary for a better GUI support, we could change it to a list.

11 years agoFactorized a bit es_out.c
Laurent Aimar [Sun, 8 Mar 2009 14:59:27 +0000 (15:59 +0100)]
Factorized a bit es_out.c

11 years agoqt4_sout: string on one line only.
Rémi Duraffort [Sun, 8 Mar 2009 18:18:12 +0000 (19:18 +0100)]
qt4_sout: string on one line only.

11 years agoQt: do we really need the days configuration for updates at first start?
Jean-Baptiste Kempf [Sat, 7 Mar 2009 00:02:58 +0000 (01:02 +0100)]
Qt: do we really need the days configuration for updates at first start?

11 years agoQt: rework of the Sout Dialog
Jean-Baptiste Kempf [Fri, 6 Mar 2009 23:56:23 +0000 (00:56 +0100)]
Qt: rework of the Sout Dialog

You can now add any number of duplicate parts you want. You can add them to create a new Tab. You can have two HTTP output or two File output, for example.
Most of the widgets creation and MRL generation part has been splitted from the main class so that people why little knowledge of Qt can understand what is going on.

Expert in streaming can personnalize more easily 'their' part of the UI with derivation of VirtualDestBox and implementing constructor+getMRL()

The huge structure has been removed.
This is a huge change in this dialog, but I think the old one was beyond possible repair.

11 years agoVLC pointer variable callback -> Qt4 signal class
Rémi Denis-Courmont [Sun, 8 Mar 2009 16:57:45 +0000 (18:57 +0200)]
VLC pointer variable callback -> Qt4 signal class

This could easily be extended to support varaibles of other types, and
set/get operations. But I don't need that :D

11 years agoRemove intf_UserStringInput
Rémi Denis-Courmont [Sun, 8 Mar 2009 14:36:24 +0000 (16:36 +0200)]
Remove intf_UserStringInput

11 years agovcdx: fix warning.
Rémi Duraffort [Sun, 8 Mar 2009 14:23:32 +0000 (15:23 +0100)]
vcdx: fix warning.

11 years agoFixed stream_t (stream mode) read.
Laurent Aimar [Sun, 8 Mar 2009 13:54:19 +0000 (14:54 +0100)]
Fixed stream_t (stream mode) read.

It fixes a growing amount of cache as noticed by Sébastien Escudier.

11 years agoqtcapture: missing include.
Rémi Duraffort [Sun, 8 Mar 2009 13:56:51 +0000 (14:56 +0100)]
qtcapture: missing include.

11 years agomozilla: might fix compilation for win32.
Rémi Duraffort [Sun, 8 Mar 2009 13:51:33 +0000 (14:51 +0100)]
mozilla: might fix compilation for win32.