Rafaël Carré
3b7fe96caa
media_player set_state() : only lock if needed
2010-01-18 09:09:11 +01:00
Pierre d'Herbemont
a6b1ff10ee
libvlc: Fix a bunch of messed up mtime_t to libvlc_time_t.
...
Apparently libvlc_time_t is millisec, whereas mtime_t is microsecs.
Most event callbacks where carying an incorrect mtime_t value.
2010-01-16 18:26:08 +01:00
Hugo Beauzee-Luyssen
d671e85ed8
libvlc: Register (MediaPlayer) SeekableChanged event.
...
Signed-off-by: Pierre d'Herbemont <pdherbemont@free.fr>
2010-01-09 14:12:59 +01:00
Pierre d'Herbemont
5871680a4a
media_player: Emit an event when the root media is changed.
2009-12-23 17:15:26 +01:00
Pierre d'Herbemont
bbce7c4cae
libvlc: Make sure the media_player has its own state cached.
...
A weirdness was introduced somehow. We were relying on the media state. (!)
Also, make sure that we always require stop() to be called when the media_player is destroyed. This may prevent some unwanted bad usage, whose consequence might be that _release() will block on input thread destruction.
2009-12-07 21:49:31 +01:00
Rémi Denis-Courmont
e87dd9f0fd
Convert "rate" variable to float everywhere
...
This follows the historical LibVLC semantic (and new --rate one), so
bigger is faster. In the process, simplify a few code paths, especially
those in LibVLC, but make many other code paths more complicated due to
integer<->float conversion. Most of those paths could probably be
simplified.
* Fix RC "fastforward" command behaviour (it was slowing down instead)
* Fix str_format_mera 'R' format string with negative rates and
rates such that (rate % 1000 < 100).
2009-11-23 19:03:11 +02:00
Rémi Duraffort
b12a91fd45
libvlc_media_player: factorize.
2009-11-20 12:28:26 +01:00
Rémi Denis-Courmont
796258abd0
LibVLC: add functions to control mouse and keyboard events
2009-10-29 23:14:48 +02:00
Rémi Denis-Courmont
2fa0b5fa1a
libvlc_media_*: remove a bunch of useless exception parameters
2009-10-05 21:56:52 +03:00
Pierre d'Herbemont
1ef06cd3b0
libvlc: Add some shortcuts in media_player.c and do some cleanup.
...
No functional changes.
2009-09-18 12:06:30 +02:00
Rémi Denis-Courmont
848c006a78
Move LibVLC error messages to libvlc_printerr().
2009-09-07 22:19:33 +03:00
Rémi Denis-Courmont
9deb8f566a
Remove set/get drawable
2009-09-07 22:19:33 +03:00
Erwan Tulou
220f431450
snapshot: replace vout_snapshottaken with snapshot-file
2009-08-29 20:52:51 +02:00
Niles Bindel
1ce2223d32
Add input resource support to the LibVLC Media Player
...
This change allows for smoother transitioning between playlist items by
not having to recreate the related video/audio resources from scratch on
every item switch. This problem was very apparent in fullscreen mode
when the current display would close out showing the OS background and
then go back to fullscreen before playing the next item.
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2009-08-26 21:05:55 +03:00
Rémi Duraffort
7695c2383f
libvlc_media_player: use var_Get(Bool|Float|Integer) when applicable.
2009-08-17 15:21:44 +02:00
Rémi Duraffort
2b7b3b7741
libvlc_media_player: fix object leak (input thread).
2009-08-17 14:52:33 +02:00
Hugo Beauzee-Luyssen
8cc1895768
Adding a libvlc_media_player_next_frame
...
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2009-08-14 14:00:52 +02:00
Jean-Paul Saman
3ef6a48d57
libvlc: clean up libvlc_Stopped and vlc_to_libvlc_state usage.
2009-08-04 10:39:48 +02:00
Rémi Duraffort
4d17b40d3f
Unused variables (remaining from a previous cleanup).
2009-07-24 09:34:22 +02:00
Rémi Duraffort
d8c29705a9
Ue var_Get(Time|Address) when applicable.
2009-07-24 09:30:09 +02:00
Rémi Duraffort
15b81850da
Directly release the input thread.
2009-07-23 21:01:08 +02:00
Rémi Duraffort
7962ffa37c
cosmetics.
2009-07-23 08:18:20 +02:00
Rémi Denis-Courmont
bd0571c57b
libvlc_media_player_get_media: missing lock
2009-07-12 23:18:47 +03:00
Pierre d'Herbemont
6030a03b5a
Revert "Remove enums from public APIs"
...
This reverts commit 3d0ef0165c
.
As agreed, the information loss is too important, even for sanitizing the ABI. And there are alternative solutions available.
2009-07-05 19:51:56 -07:00
Rémi Denis-Courmont
3d0ef0165c
Remove enums from public APIs
2009-06-29 18:38:32 +03:00
Jean-Paul Saman
6b31ed2e44
fix wording: no --> not
2009-06-05 20:55:04 +02:00
Geoffroy Couprie
295904fac5
Add missing config.h
2009-05-25 15:09:40 +02:00
Pierre d'Herbemont
815ec591b0
libvlc: nsobject is void *.
2009-05-25 03:04:23 -07:00
Pierre d'Herbemont
5b5a735b1a
libvlc: Split libvlc_internal in different independant headers.
2009-05-25 02:58:34 -07:00
Rémi Denis-Courmont
52c18c4dec
Merge branch 1.0-bugfix
2009-05-23 12:43:00 +03:00
Rémi Denis-Courmont
855370d938
Missing initializer
...
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2009-05-21 22:46:23 +03:00
Rémi Duraffort
7b6ed91d95
Factorization.
2009-05-20 22:06:07 +02:00
Rémi Duraffort
78d87996cc
Merge branch '1.0-bugfix'
...
Conflicts:
src/control/media_player.c
2009-05-20 21:53:35 +02:00
Rémi Duraffort
b36b614a14
Fix potential object leak.
2009-05-20 21:02:08 +02:00
Rémi Duraffort
a4bcd514cc
No need to check for a NULL as libvlc_media_release is checking.
2009-05-20 20:56:18 +02:00
Rémi Duraffort
adf4fbbf60
Create a function to free the memory allocated when calling
...
var_Change(VLC_VAR_GETCHOICES). The memory was freed by a call to
var_Change(VLC_VAR_FREELIST). That's not a good idea as we were doing a lookup
just to free some memory.
2009-05-20 19:36:49 +02:00
Rémi Denis-Courmont
7f12470415
Merge branch 1.0-bugfix
...
Conflicts:
modules/video_filter/extract.c
modules/video_filter/marq.c
projects/mozilla/control/npolibvlc.cpp
src/control/video.c
2009-05-20 19:46:41 +03:00
Rémi Duraffort
1c15d4ad0c
Fix a (really) small memleak (even if i_count is 0, some memory is allocated
...
for the strucure).
2009-05-20 13:06:21 +02:00
Hugo Beauzee-Luyssen
a5b3becf4c
Adding a libvlc_MediaPlayerLengthChanged event
...
Signed-off-by: Laurent Aimar <fenrir@videolan.org>
2009-05-14 20:16:43 +02:00
Rémi Denis-Courmont
b65308f0b9
Merge branch 1.0-bugfix
2009-05-13 18:52:37 +03:00
Rémi Denis-Courmont
44f031cb1d
Privatize libvlc_media_player_destroy
2009-05-13 18:52:22 +03:00
Rémi Denis-Courmont
922aad511a
Remove deprecated functions
2009-05-13 18:52:18 +03:00
Rémi Denis-Courmont
9a1855005d
libvlc_media_player_retain: missing lock
2009-05-13 18:51:35 +03:00
Jean-Paul Saman
1546371306
libvlc: delete callback in media_player_release.
2009-05-12 13:51:32 +02:00
Jean-Paul Saman
3fa0d24d13
media_player: cosmetics
2009-05-12 13:51:32 +02:00
Jean-Paul Saman
f727ff42b5
Cleanup whitespace.
2009-05-12 12:50:13 +02:00
Laurent Aimar
768bd8a4d8
Split INPUT_EVENT_TIMES into INPUT_EVENT_POSITION/LENGTH.
...
It allows a finer control on what to update (for gui).
2009-05-11 22:17:54 +02:00
Laurent Aimar
80684e7846
Fixed a race condition with input creation and events.
...
input_CreateThread* have been splitted in two functions:
- input_Create
- input_Start
to allow attaching to input events and creating settings/variables
before starting the input thread.
For consistency, input_StopThread has been renamed input_Stop.
Initial report from Hugo Beauzee-Luyssen.
2009-05-08 02:12:39 +02:00
Jean-Paul Saman
bcc5b3f690
libvlc: allow pause and stop during buffering ( fixes : #2679 )
2009-05-05 11:41:45 +02:00
Jean-Paul Saman
937b3831a6
src/control/media_player.c: cosmetics
2009-05-05 11:41:45 +02:00