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
a5c2c7ea
Commit
a5c2c7ea
authored
Jul 24, 2011
by
Alexey Sokolov
Committed by
Jean-Baptiste Kempf
Jul 25, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add few missing error messages to libvlc.
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
1f442822
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
2 deletions
+19
-2
include/vlc/libvlc_media_list.h
include/vlc/libvlc_media_list.h
+1
-1
src/control/core.c
src/control/core.c
+14
-1
src/control/media_library.c
src/control/media_library.c
+3
-0
src/control/media_list.c
src/control/media_list.c
+1
-0
No files found.
include/vlc/libvlc_media_list.h
View file @
a5c2c7ea
...
@@ -156,7 +156,7 @@ LIBVLC_API libvlc_media_t *
...
@@ -156,7 +156,7 @@ LIBVLC_API libvlc_media_t *
*
*
* \param p_ml a media list instance
* \param p_ml a media list instance
* \param p_md media instance
* \param p_md media instance
* \return position of media instance
* \return position of media instance
or -1 if media not found
*/
*/
LIBVLC_API
int
LIBVLC_API
int
libvlc_media_list_index_of_item
(
libvlc_media_list_t
*
p_ml
,
libvlc_media_list_index_of_item
(
libvlc_media_list_t
*
p_ml
,
...
...
src/control/core.c
View file @
a5c2c7ea
...
@@ -114,7 +114,20 @@ void libvlc_release( libvlc_instance_t *p_instance )
...
@@ -114,7 +114,20 @@ void libvlc_release( libvlc_instance_t *p_instance )
int
libvlc_add_intf
(
libvlc_instance_t
*
p_i
,
const
char
*
name
)
int
libvlc_add_intf
(
libvlc_instance_t
*
p_i
,
const
char
*
name
)
{
{
return
libvlc_InternalAddIntf
(
p_i
->
p_libvlc_int
,
name
)
?
-
1
:
0
;
if
(
libvlc_InternalAddIntf
(
p_i
->
p_libvlc_int
,
name
))
{
if
(
name
)
{
libvlc_printerr
(
"interface
\"
%s
\"
initialization failed"
,
name
);
}
else
{
libvlc_printerr
(
"default interface initialization failed"
);
}
return
-
1
;
}
return
0
;
}
}
void
libvlc_set_exit_handler
(
libvlc_instance_t
*
p_i
,
void
(
*
cb
)
(
void
*
),
void
libvlc_set_exit_handler
(
libvlc_instance_t
*
p_i
,
void
(
*
cb
)
(
void
*
),
...
...
src/control/media_library.c
View file @
a5c2c7ea
...
@@ -64,7 +64,10 @@ libvlc_media_library_new( libvlc_instance_t * p_inst )
...
@@ -64,7 +64,10 @@ libvlc_media_library_new( libvlc_instance_t * p_inst )
p_mlib
=
malloc
(
sizeof
(
libvlc_media_library_t
));
p_mlib
=
malloc
(
sizeof
(
libvlc_media_library_t
));
if
(
!
p_mlib
)
if
(
!
p_mlib
)
{
libvlc_printerr
(
"Not enough memory"
);
return
NULL
;
return
NULL
;
}
p_mlib
->
p_libvlc_instance
=
p_inst
;
p_mlib
->
p_libvlc_instance
=
p_inst
;
p_mlib
->
i_refcount
=
1
;
p_mlib
->
i_refcount
=
1
;
...
...
src/control/media_list.c
View file @
a5c2c7ea
...
@@ -454,6 +454,7 @@ int libvlc_media_list_index_of_item( libvlc_media_list_t * p_mlist,
...
@@ -454,6 +454,7 @@ int libvlc_media_list_index_of_item( libvlc_media_list_t * p_mlist,
if
(
p_searched_md
==
p_md
)
if
(
p_searched_md
==
p_md
)
return
i
;
return
i
;
}
}
libvlc_printerr
(
"Media not found"
);
return
-
1
;
return
-
1
;
}
}
...
...
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