Pierre d'Herbemont
b99b8b1a44
control/media_instance.c: Make sure the toggling the of the pause status implies a right "state" callback.
2008-01-07 15:49:39 +00:00
Pierre d'Herbemont
5da72b7761
libvlc.h: Define and implement libvlc_media_instance_is_pausable().
2008-01-07 14:46:08 +00:00
Pierre d'Herbemont
700e6aac85
control/media_instance.c: Publish is_seekable().
2007-12-29 03:29:10 +00:00
Pierre d'Herbemont
acd2d9b60c
src/control/media_instance.c: Don't wait to have modulo something, to forward the time, that could be crazy.
2007-12-29 02:44:32 +00:00
Pierre d'Herbemont
48f7ca7f70
control/media_instance.c:
...
* Implement MediaInstancePositionChanged and MediaInstanceTimeChanged accurately.
control/event.c:
* Register the all event types.
* Don't strdup() in libvlc_event_type_name().
2007-12-29 01:29:48 +00:00
Pierre d'Herbemont
7f4c808018
media_instance.c: Fix the position callback to retun the time. (Next time, we'll fix it to return the position).
2007-12-29 00:11:36 +00:00
Pierre d'Herbemont
141e740fbe
control/media_descriptor.c: Publish an Event plus a method to get the media_descriptor state, which is buffering, playing, error, nothing special. This is a bit controversial as we need a media_instance to set that state, and this is media_instance dependant. However, this is a nice shortcut.
2007-12-24 18:45:10 +00:00
Pierre d'Herbemont
7a35ff7e4c
control/media_instance.c: implement libvlc_media_instance_stop.
2007-12-14 21:00:53 +00:00
Pierre d'Herbemont
8120e31bbd
control/media_instance.c: Implement get/set chapter. (Patch by Enrique Osuna).
2007-10-25 12:28:04 +00:00
Pierre d'Herbemont
9a9b2af4ee
control/media_instance.c: Cons-ify the conversion table.
2007-10-21 13:55:53 +00:00
Pierre d'Herbemont
7b32ae1770
src/control: (Patch by Enrique Osuna)
...
* Add the ability to store user data in media_descriptor.
* Duration can now be retrieved from a media_instance
* Can new get the preparsed state of a media_descriptor
* Add callbacks for libvlc_MediaDescriptorDurationChanged/vlc_InputItemDurationChanged and libvlc_MediaDescriptorPreparsedChanged/vlc_InputItemPreparsedChanged.
2007-10-20 17:56:00 +00:00
Pierre d'Herbemont
50b8eb2121
control/media_instance.c: Remove an unused variable. (Pointed by jb).
2007-10-05 09:52:48 +00:00
Pierre d'Herbemont
76a0d251f0
control/media_instance.c: Fix a segfault caused by libvlc_media_instance_release. (Patch by Enrique Osuna).
2007-10-03 00:28:36 +00:00
Pierre d'Herbemont
ae3231b3bc
control/media_instance.c: Don't forget to register emitted event. (Patch by Enrique Osuna).
2007-10-02 11:29:20 +00:00
Pierre d'Herbemont
1cdb7f8b65
control/media_instance.c: Remove access to p_input_thread->p_internals. (which was a broken hack by the way).
2007-09-30 23:25:18 +00:00
Laurent Aimar
f516f420d7
Added a INPUT_GET_VIDEO_FPS (get the fps of the main video, should works with
...
input slave) Untested.
media_instance.c no longer depends on input_internal.h
Clean up a bit es_out pause handling.
Fixed DEMUX_GET_FPS description (double not float)
2007-09-30 23:17:19 +00:00
Pierre d'Herbemont
f105c3676e
control/media_instance.c: Remove one occurence of input->p.
2007-09-30 22:56:37 +00:00
Laurent Aimar
00cd427634
Partial fix for media instance. (It was using input_control_e intead of
...
input_query_e).
Btw input_internal.h is an internal header for src/input/* ONLY.
If input/control/* need it, then it is BROKEN (or there is a missing
functionnality, just ask for it then)
I see it calling demux2_Control, this will segfault if you are unlucky.
Accessing directly to p_input->p member is also forbidden.
2007-09-30 22:20:31 +00:00
Rémi Denis-Courmont
e0784be1ce
Hide object reference counter.
...
Good news is, no plugins used it anyway.
Bad news is, some parts of libvlc still use which is wrong (i_refcount is protected by the "structure lock", meaning only misc/objects.c functions can use it safely).
2007-09-30 14:01:24 +00:00
Pierre d'Herbemont
145a649d15
libvlc: Implement the _get_state function. Fix a leak. Fix a warning.
2007-09-23 15:06:55 +00:00
Rafaël Carré
6ee1e193fd
Removes trailing spaces. Removes tabs.
2007-09-10 18:56:52 +00:00
Pierre d'Herbemont
3fdc5f7c7f
control/media_instance.c: Retain the media descriptor, don't duplicate.
2007-08-25 14:35:40 +00:00
Rémi Denis-Courmont
cc3bd152f5
Remember not to include anything before vlc/vlc.h
...
(which includes config.h which defines the platform feature macros)
Also remember stdio, string and stdlib are included implicitly
2007-08-20 18:59:30 +00:00
Pierre d'Herbemont
6984b61577
src/control: Various events addition.
2007-08-20 04:43:48 +00:00
Pierre d'Herbemont
48b6fb5cf5
control/media_instance.c: Don't forget to stop the thread.
2007-08-19 21:53:24 +00:00
Pierre d'Herbemont
25fd4bfdc8
media_instance.c: Don't forget mutex destruction.
2007-08-16 19:04:26 +00:00
Pierre d'Herbemont
c09a926925
src/control/media_instance.c: Create and Destroy the drawable variable.
2007-08-15 21:12:07 +00:00
Pierre d'Herbemont
3bc8eab603
control/media_instance.c: Ignore the exception raised by libvlc_get_input_thread in libvlc_media_instance_play.
2007-08-11 12:10:25 +00:00
Pierre d'Herbemont
b10cf533e4
control/media_instance.c: Never fail when requesting the event manager.
2007-08-10 23:10:09 +00:00
Pierre d'Herbemont
a1eb826dcd
control/media_instance.c: Set a per-object drawable.
2007-08-09 12:45:37 +00:00
Pierre d'Herbemont
8239a93234
Libvlc: Start the implementation of the libvlc playlist. Still in progress.
2007-08-08 21:12:02 +00:00
Pierre d'Herbemont
cbbe174a03
control/media_instance.c: Listen to the variable changes.
2007-08-08 01:13:31 +00:00
Pierre d'Herbemont
fa2c16991d
control/media_instance.c: Support libvlc_MediaInstanceReachedEnd event for upcoming media_list_player.
2007-08-07 23:51:17 +00:00
Pierre d'Herbemont
664fa731b3
control/media_instance.c: Code factorization.
2007-08-07 18:59:45 +00:00
Pierre d'Herbemont
fc12cd71fb
control/media_instance.c: Work around a missing playlist feature: Playlist should increment the input refcount, and destroy it based upon its refcount value. (this is a temporary hack to allow libvlc usage, until we fix the playlist).
2007-07-14 20:54:33 +00:00
Pierre d'Herbemont
74e5ab0085
control/media_instance.c: Make sure we initialize every md's variables in _new_from_input_thread.
2007-07-13 20:32:45 +00:00
Pierre d'Herbemont
7c1ddf7e27
control/media_instance: More lock sanitization. (oops).
2007-07-11 18:00:35 +00:00
Pierre d'Herbemont
c7dbcf8acb
control/media_instance.c: Fix a warning on missing parenthesis in a if statement.
2007-07-10 18:58:28 +00:00
Pierre d'Herbemont
c71c8cbc5a
control/media_instance.c: Fix the dead lock reported by Olivier Aubert.
2007-07-10 18:56:44 +00:00
Pierre d'Herbemont
a901e3b607
Libvlc: Make medi_instance thread safe and implement the basics for refcounting.
2007-07-08 15:22:53 +00:00
Damien Fouilleul
23942f1f36
- libvlc APIs: bug fixing, and please note that exception argument is OPTIONAL (can be null), do not use exception to control API flow unless you created your own
2007-06-25 18:06:52 +00:00
Pierre d'Herbemont
40fbcb70eb
Libvlc: Make media_instance_destroy private.
2007-06-24 13:26:17 +00:00
Pierre d'Herbemont
e054ef8bc3
Libvlc: Implement media_instance_[get|set]_media_descriptor. Now, media_instance_new creates an empty object. The old _new is now _new_from_media_descriptor.
2007-06-24 13:19:21 +00:00
Pierre d'Herbemont
e1314822f8
Libvlc: Use exception for internal function.
2007-06-24 11:31:57 +00:00
Pierre d'Herbemont
6274a7ecab
Fix previous commit (Oops).
2007-06-23 11:54:40 +00:00
Pierre d'Herbemont
be6efa2006
Libvlc: replace media_instance_destroy_and_detach by media_instance_release.
2007-06-23 11:40:40 +00:00
Pierre d'Herbemont
ba1ea5d802
libvlc: Rename the input.c file to media_instance.c.
2007-06-17 20:56:25 +00:00