Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
8d875234
Commit
8d875234
authored
Jan 31, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
good
parent
8f9c3647
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
130 additions
and
212 deletions
+130
-212
include/vlc/libvlc_media_list_player.h
include/vlc/libvlc_media_list_player.h
+2
-3
include/vlc/libvlc_media_player.h
include/vlc/libvlc_media_player.h
+56
-79
src/control/media_list_player.c
src/control/media_list_player.c
+2
-3
src/control/media_player.c
src/control/media_player.c
+64
-120
src/control/mediacontrol_core.c
src/control/mediacontrol_core.c
+6
-7
No files found.
include/vlc/libvlc_media_list_player.h
View file @
8d875234
...
...
@@ -60,11 +60,10 @@ typedef enum libvlc_playback_mode_t
*
* \param p_instance libvlc instance
* \param p_e initialized exception instance
* \return media list player instance
* \return media list player instance
or NULL on error
*/
VLC_PUBLIC_API
libvlc_media_list_player_t
*
libvlc_media_list_player_new
(
libvlc_instance_t
*
p_instance
,
libvlc_exception_t
*
p_e
);
libvlc_media_list_player_new
(
libvlc_instance_t
*
p_instance
);
/**
* Release media_list_player.
...
...
include/vlc/libvlc_media_player.h
View file @
8d875234
This diff is collapsed.
Click to expand it.
src/control/media_list_player.c
View file @
8d875234
...
...
@@ -438,7 +438,7 @@ set_current_playing_item(libvlc_media_list_player_t * p_mlp, libvlc_media_list_p
/* Create a new media_player if there is none */
if
(
!
p_mlp
->
p_mi
)
p_mlp
->
p_mi
=
libvlc_media_player_new_from_media
(
p_md
,
NULL
);
p_mlp
->
p_mi
=
libvlc_media_player_new_from_media
(
p_md
);
libvlc_media_player_set_media
(
p_mlp
->
p_mi
,
p_md
);
...
...
@@ -454,9 +454,8 @@ set_current_playing_item(libvlc_media_list_player_t * p_mlp, libvlc_media_list_p
* new (Public)
**************************************************************************/
libvlc_media_list_player_t
*
libvlc_media_list_player_new
(
libvlc_instance_t
*
p_instance
,
libvlc_exception_t
*
p_e
)
libvlc_media_list_player_new
(
libvlc_instance_t
*
p_instance
)
{
(
void
)
p_e
;
libvlc_media_list_player_t
*
p_mlp
;
p_mlp
=
calloc
(
1
,
sizeof
(
libvlc_media_list_player_t
)
);
if
(
unlikely
(
p_mlp
==
NULL
))
...
...
src/control/media_player.c
View file @
8d875234
This diff is collapsed.
Click to expand it.
src/control/mediacontrol_core.c
View file @
8d875234
...
...
@@ -62,8 +62,9 @@ mediacontrol_Instance* mediacontrol_new( int argc, char** argv, mediacontrol_Exc
retval
->
p_instance
=
libvlc_new
(
argc
,
(
const
char
**
)
argv
,
&
ex
);
HANDLE_LIBVLC_EXCEPTION_NULL
(
&
ex
);
retval
->
p_media_player
=
libvlc_media_player_new
(
retval
->
p_instance
,
&
ex
);
HANDLE_LIBVLC_EXCEPTION_NULL
(
&
ex
);
retval
->
p_media_player
=
libvlc_media_player_new
(
retval
->
p_instance
);
if
(
!
retval
->
p_media_player
)
RAISE_NULL
(
mediacontrol_InternalException
,
"Out of memory"
);
return
retval
;
}
...
...
@@ -90,9 +91,6 @@ mediacontrol_new_from_instance( libvlc_instance_t* p_instance,
mediacontrol_Exception
*
exception
)
{
mediacontrol_Instance
*
retval
;
libvlc_exception_t
ex
;
libvlc_exception_init
(
&
ex
);
retval
=
(
mediacontrol_Instance
*
)
malloc
(
sizeof
(
mediacontrol_Instance
)
);
if
(
!
retval
)
...
...
@@ -100,8 +98,9 @@ mediacontrol_new_from_instance( libvlc_instance_t* p_instance,
RAISE_NULL
(
mediacontrol_InternalException
,
"Out of memory"
);
}
retval
->
p_instance
=
p_instance
;
retval
->
p_media_player
=
libvlc_media_player_new
(
retval
->
p_instance
,
&
ex
);
HANDLE_LIBVLC_EXCEPTION_NULL
(
&
ex
);
retval
->
p_media_player
=
libvlc_media_player_new
(
retval
->
p_instance
);
if
(
!
retval
->
p_media_player
)
RAISE_NULL
(
mediacontrol_InternalException
,
"Out of memory"
);
return
retval
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment