Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
e1314822
Commit
e1314822
authored
Jun 24, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Libvlc: Use exception for internal function.
parent
77a27e5d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
6 deletions
+15
-6
src/control/libvlc_internal.h
src/control/libvlc_internal.h
+2
-2
src/control/media_descriptor.c
src/control/media_descriptor.c
+2
-1
src/control/media_instance.c
src/control/media_instance.c
+10
-2
src/control/playlist.c
src/control/playlist.c
+1
-1
No files found.
src/control/libvlc_internal.h
View file @
e1314822
...
...
@@ -99,10 +99,10 @@ VLC_EXPORT (input_thread_t *, libvlc_get_input_thread,
(
struct
libvlc_media_instance_t
*
,
libvlc_exception_t
*
)
);
VLC_EXPORT
(
libvlc_media_instance_t
*
,
libvlc_media_instance_new_from_input_thread
,
(
struct
libvlc_instance_t
*
,
input_thread_t
*
)
);
(
struct
libvlc_instance_t
*
,
input_thread_t
*
,
libvlc_exception_t
*
)
);
VLC_EXPORT
(
libvlc_media_descriptor_t
*
,
libvlc_media_descriptor_new_from_input_item
,
(
struct
libvlc_instance_t
*
,
input_item_t
*
)
);
(
struct
libvlc_instance_t
*
,
input_item_t
*
,
libvlc_exception_t
*
)
);
VLC_EXPORT
(
libvlc_media_descriptor_t
*
,
libvlc_media_descriptor_duplicate
,
(
libvlc_media_descriptor_t
*
)
);
...
...
src/control/media_descriptor.c
View file @
e1314822
...
...
@@ -75,7 +75,8 @@ libvlc_media_descriptor_t * libvlc_media_descriptor_new(
**************************************************************************/
libvlc_media_descriptor_t
*
libvlc_media_descriptor_new_from_input_item
(
libvlc_instance_t
*
p_instance
,
input_item_t
*
p_input_item
)
input_item_t
*
p_input_item
,
libvlc_exception_t
*
p_e
)
{
libvlc_media_descriptor_t
*
p_media_desc
;
...
...
src/control/media_instance.c
View file @
e1314822
...
...
@@ -72,14 +72,22 @@ libvlc_media_instance_new( libvlc_media_descriptor_t *p_md )
**************************************************************************/
libvlc_media_instance_t
*
libvlc_media_instance_new_from_input_thread
(
struct
libvlc_instance_t
*
p_libvlc_instance
,
input_thread_t
*
p_input
)
input_thread_t
*
p_input
,
libvlc_exception_t
*
p_e
)
{
libvlc_media_instance_t
*
p_mi
;
p_mi
=
malloc
(
sizeof
(
libvlc_media_instance_t
)
);
p_mi
->
p_md
=
libvlc_media_descriptor_new_from_input_item
(
p_libvlc_instance
,
p_input
->
p
->
input
.
p_item
);
p_input
->
p
->
input
.
p_item
,
p_e
);
if
(
libvlc_exception_raised
(
p_e
)
)
{
free
(
p_mi
);
return
NULL
;
}
p_mi
->
p_libvlc_instance
=
p_libvlc_instance
;
p_mi
->
i_input_id
=
p_input
->
i_object_id
;
...
...
src/control/playlist.c
View file @
e1314822
...
...
@@ -220,7 +220,7 @@ libvlc_media_instance_t * libvlc_playlist_get_media_instance(
vlc_mutex_lock
(
&
PL
->
object_lock
);
p_mi
=
libvlc_media_instance_new_from_input_thread
(
p_instance
,
PL
->
p_input
);
p_instance
,
PL
->
p_input
,
p_e
);
vlc_mutex_unlock
(
&
PL
->
object_lock
);
return
p_mi
;
...
...
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