Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
b7e0d3cc
Commit
b7e0d3cc
authored
Jan 28, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove some unused p_e parameters and propagate
parent
1e87443a
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
45 additions
and
61 deletions
+45
-61
include/vlc/libvlc_media_library.h
include/vlc/libvlc_media_library.h
+2
-3
include/vlc/libvlc_media_list.h
include/vlc/libvlc_media_list.h
+4
-8
src/control/flat_media_list_view.c
src/control/flat_media_list_view.c
+1
-2
src/control/hierarchical_media_list_view.c
src/control/hierarchical_media_list_view.c
+3
-5
src/control/hierarchical_node_media_list_view.c
src/control/hierarchical_node_media_list_view.c
+3
-5
src/control/media.c
src/control/media.c
+2
-2
src/control/media_discoverer.c
src/control/media_discoverer.c
+1
-1
src/control/media_library.c
src/control/media_library.c
+2
-5
src/control/media_list.c
src/control/media_list.c
+1
-2
src/control/media_list_view.c
src/control/media_list_view.c
+1
-2
src/control/media_list_view_internal.h
src/control/media_list_view_internal.h
+1
-2
test/libvlc/media_list.c
test/libvlc/media_list.c
+2
-2
test/libvlc/media_list_player.c
test/libvlc/media_list_player.c
+22
-22
No files found.
include/vlc/libvlc_media_library.h
View file @
b7e0d3cc
...
...
@@ -50,11 +50,10 @@ typedef struct libvlc_media_library_t libvlc_media_library_t;
* Create an new Media Library object
*
* \param p_libvlc_instance the libvlc instance
* \
param p_e an initialized exception pointe
r
* \
return a new object or NULL on erro
r
*/
VLC_PUBLIC_API
libvlc_media_library_t
*
libvlc_media_library_new
(
libvlc_instance_t
*
p_inst
,
libvlc_exception_t
*
p_e
);
libvlc_media_library_new
(
libvlc_instance_t
*
p_inst
);
/**
* Release media library object. This functions decrements the
...
...
include/vlc/libvlc_media_list.h
View file @
b7e0d3cc
...
...
@@ -49,11 +49,10 @@ typedef struct libvlc_media_list_view_t libvlc_media_list_view_t;
* Create an empty media list.
*
* \param p_libvlc libvlc instance
* \param p_e an initialized exception pointer
* \return empty media list
* \return empty media list, or NULL on error
*/
VLC_PUBLIC_API
libvlc_media_list_t
*
libvlc_media_list_new
(
libvlc_instance_t
*
,
libvlc_exception_t
*
);
libvlc_media_list_new
(
libvlc_instance_t
*
);
/**
* Release media list created with libvlc_media_list_new().
...
...
@@ -213,16 +212,13 @@ VLC_PUBLIC_API libvlc_media_list_view_t *
* Get a hierarchical media list view of media list items
*
* \param p_ml a media list instance
* \param p_ex an exception instance
* \return hierarchical media list view instance
*/
VLC_PUBLIC_API
libvlc_media_list_view_t
*
libvlc_media_list_hierarchical_view
(
libvlc_media_list_t
*
,
libvlc_exception_t
*
);
libvlc_media_list_hierarchical_view
(
libvlc_media_list_t
*
);
VLC_PUBLIC_API
libvlc_media_list_view_t
*
libvlc_media_list_hierarchical_node_view
(
libvlc_media_list_t
*
p_ml
,
libvlc_exception_t
*
p_ex
);
libvlc_media_list_hierarchical_node_view
(
libvlc_media_list_t
*
p_ml
);
/**
* Get libvlc_event_manager from this media list instance.
...
...
src/control/flat_media_list_view.c
View file @
b7e0d3cc
...
...
@@ -186,8 +186,7 @@ libvlc_media_list_flat_view( libvlc_media_list_t * p_mlist,
flat_media_list_view_children_at_index
,
libvlc_media_list_flat_view
,
flat_media_list_view_release
,
p_this_view_data
,
p_e
);
p_this_view_data
);
libvlc_media_list_lock
(
p_mlist
);
import_mlist_rec
(
p_mlv
,
p_mlist
,
p_e
);
libvlc_media_list_view_set_ml_notification_callback
(
p_mlv
,
...
...
src/control/hierarchical_media_list_view.c
View file @
b7e0d3cc
...
...
@@ -86,7 +86,7 @@ hierarch_media_list_view_children_at_index( libvlc_media_list_view_t * p_mlv,
p_submlist
=
libvlc_media_subitems
(
p_md
);
libvlc_media_release
(
p_md
);
if
(
!
p_submlist
)
return
NULL
;
p_ret
=
libvlc_media_list_hierarchical_view
(
p_submlist
,
p_e
);
p_ret
=
libvlc_media_list_hierarchical_view
(
p_submlist
);
libvlc_media_list_release
(
p_submlist
);
return
p_ret
;
...
...
@@ -162,8 +162,7 @@ hierarch_media_list_view_release( libvlc_media_list_view_t * p_mlv )
* libvlc_media_list_flat_view (Public)
**************************************************************************/
libvlc_media_list_view_t
*
libvlc_media_list_hierarchical_view
(
libvlc_media_list_t
*
p_mlist
,
libvlc_exception_t
*
p_e
)
libvlc_media_list_hierarchical_view
(
libvlc_media_list_t
*
p_mlist
)
{
trace
(
"
\n
"
);
libvlc_media_list_view_t
*
p_mlv
;
...
...
@@ -173,8 +172,7 @@ libvlc_media_list_hierarchical_view( libvlc_media_list_t * p_mlist,
hierarch_media_list_view_children_at_index
,
libvlc_media_list_hierarchical_view
,
hierarch_media_list_view_release
,
NULL
,
p_e
);
NULL
);
libvlc_media_list_lock
(
p_mlist
);
libvlc_event_attach
(
p_mlv
->
p_mlist
->
p_event_manager
,
libvlc_MediaListItemAdded
,
...
...
src/control/hierarchical_node_media_list_view.c
View file @
b7e0d3cc
...
...
@@ -127,7 +127,7 @@ hierarch_node_media_list_view_children_at_index( libvlc_media_list_view_t * p_ml
p_submlist
=
libvlc_media_subitems
(
p_md
);
libvlc_media_release
(
p_md
);
if
(
!
p_submlist
)
return
NULL
;
p_ret
=
libvlc_media_list_hierarchical_node_view
(
p_submlist
,
p_e
);
p_ret
=
libvlc_media_list_hierarchical_node_view
(
p_submlist
);
libvlc_media_list_release
(
p_submlist
);
return
p_ret
;
...
...
@@ -282,8 +282,7 @@ hierarch_node_media_list_view_release( libvlc_media_list_view_t * p_mlv )
* libvlc_media_list_flat_view (Public)
**************************************************************************/
libvlc_media_list_view_t
*
libvlc_media_list_hierarchical_node_view
(
libvlc_media_list_t
*
p_mlist
,
libvlc_exception_t
*
p_e
)
libvlc_media_list_hierarchical_node_view
(
libvlc_media_list_t
*
p_mlist
)
{
trace
(
"
\n
"
);
libvlc_media_list_view_t
*
p_mlv
;
...
...
@@ -293,8 +292,7 @@ libvlc_media_list_hierarchical_node_view( libvlc_media_list_t * p_mlist,
hierarch_node_media_list_view_children_at_index
,
libvlc_media_list_hierarchical_node_view
,
hierarch_node_media_list_view_release
,
NULL
,
p_e
);
NULL
);
libvlc_media_list_lock
(
p_mlist
);
libvlc_event_attach
(
p_mlv
->
p_mlist
->
p_event_manager
,
libvlc_MediaListItemAdded
,
...
...
src/control/media.c
View file @
b7e0d3cc
...
...
@@ -101,7 +101,7 @@ static void input_item_subitem_added( const vlc_event_t *p_event,
/* Add this to our media list */
if
(
!
p_md
->
p_subitems
)
{
p_md
->
p_subitems
=
libvlc_media_list_new
(
p_md
->
p_libvlc_instance
,
NULL
);
p_md
->
p_subitems
=
libvlc_media_list_new
(
p_md
->
p_libvlc_instance
);
libvlc_media_list_set_media
(
p_md
->
p_subitems
,
p_md
);
}
if
(
p_md
->
p_subitems
)
...
...
@@ -346,7 +346,7 @@ libvlc_media_t * libvlc_media_new_as_node(
p_md
=
libvlc_media_new_from_input_item
(
p_instance
,
p_input_item
,
p_e
);
p_md
->
p_subitems
=
libvlc_media_list_new
(
p_md
->
p_libvlc_instance
,
NULL
);
p_md
->
p_subitems
=
libvlc_media_list_new
(
p_md
->
p_libvlc_instance
);
return
p_md
;
}
...
...
src/control/media_discoverer.c
View file @
b7e0d3cc
...
...
@@ -184,7 +184,7 @@ libvlc_media_discoverer_new_from_name( libvlc_instance_t * p_inst,
}
p_mdis
->
p_libvlc_instance
=
p_inst
;
p_mdis
->
p_mlist
=
libvlc_media_list_new
(
p_inst
,
NULL
);
p_mdis
->
p_mlist
=
libvlc_media_list_new
(
p_inst
);
p_mdis
->
p_mlist
->
b_read_only
=
true
;
p_mdis
->
running
=
false
;
...
...
src/control/media_library.c
View file @
b7e0d3cc
...
...
@@ -57,8 +57,7 @@ struct libvlc_media_library_t
* new (Public)
**************************************************************************/
libvlc_media_library_t
*
libvlc_media_library_new
(
libvlc_instance_t
*
p_inst
,
libvlc_exception_t
*
p_e
)
libvlc_media_library_new
(
libvlc_instance_t
*
p_inst
)
{
libvlc_media_library_t
*
p_mlib
;
...
...
@@ -131,9 +130,7 @@ libvlc_media_library_load( libvlc_media_library_t * p_mlib,
if
(
p_mlib
->
p_mlist
)
libvlc_media_list_release
(
p_mlib
->
p_mlist
);
p_mlib
->
p_mlist
=
libvlc_media_list_new
(
p_mlib
->
p_libvlc_instance
,
p_e
);
p_mlib
->
p_mlist
=
libvlc_media_list_new
(
p_mlib
->
p_libvlc_instance
);
libvlc_media_list_add_file_content
(
p_mlib
->
p_mlist
,
psz_uri
,
p_e
);
free
(
psz_uri
);
...
...
src/control/media_list.c
View file @
b7e0d3cc
...
...
@@ -151,8 +151,7 @@ int mlist_is_writable( libvlc_media_list_t *p_mlist, libvlc_exception_t *p_e )
* Init an object.
**************************************************************************/
libvlc_media_list_t
*
libvlc_media_list_new
(
libvlc_instance_t
*
p_inst
,
libvlc_exception_t
*
p_e
)
libvlc_media_list_new
(
libvlc_instance_t
*
p_inst
)
{
libvlc_media_list_t
*
p_mlist
;
...
...
src/control/media_list_view.c
View file @
b7e0d3cc
...
...
@@ -303,8 +303,7 @@ libvlc_media_list_view_new( libvlc_media_list_t * p_mlist,
libvlc_media_list_view_children_at_index_func_t
pf_children_at_index
,
libvlc_media_list_view_constructor_func_t
pf_constructor
,
libvlc_media_list_view_release_func_t
pf_release
,
void
*
this_view_data
,
libvlc_exception_t
*
p_e
)
void
*
this_view_data
)
{
libvlc_media_list_view_t
*
p_mlv
;
p_mlv
=
calloc
(
1
,
sizeof
(
libvlc_media_list_view_t
)
);
...
...
src/control/media_list_view_internal.h
View file @
b7e0d3cc
...
...
@@ -86,8 +86,7 @@ libvlc_media_list_view_t * libvlc_media_list_view_new(
libvlc_media_list_view_children_at_index_func_t
pf_children_at_index
,
libvlc_media_list_view_constructor_func_t
pf_constructor
,
libvlc_media_list_view_release_func_t
pf_release
,
void
*
this_view_data
,
libvlc_exception_t
*
p_e
);
void
*
this_view_data
);
void
libvlc_media_list_view_set_ml_notification_callback
(
libvlc_media_list_view_t
*
p_mlv
,
...
...
test/libvlc/media_list.c
View file @
b7e0d3cc
...
...
@@ -35,8 +35,8 @@ static void test_media_list (const char ** argv, int argc)
vlc
=
libvlc_new
(
argc
,
argv
,
&
ex
);
catch
();
ml
=
libvlc_media_list_new
(
vlc
,
&
ex
);
catch
(
);
ml
=
libvlc_media_list_new
(
vlc
);
assert
(
ml
!=
NULL
);
md1
=
libvlc_media_new
(
vlc
,
"/dev/null"
,
&
ex
);
catch
();
...
...
test/libvlc/media_list_player.c
View file @
b7e0d3cc
...
...
@@ -107,8 +107,8 @@ static void test_media_list_player_items_queue(const char** argv, int argc)
md
=
libvlc_media_new
(
vlc
,
file
,
&
ex
);
catch
();
ml
=
libvlc_media_list_new
(
vlc
,
&
ex
);
catch
(
);
ml
=
libvlc_media_list_new
(
vlc
);
assert
(
ml
!=
NULL
);
mlp
=
libvlc_media_list_player_new
(
vlc
,
&
ex
);
catch
();
...
...
@@ -178,8 +178,8 @@ static void test_media_list_player_previous(const char** argv, int argc)
md
=
libvlc_media_new
(
vlc
,
file
,
&
ex
);
catch
();
ml
=
libvlc_media_list_new
(
vlc
,
&
ex
);
catch
(
);
ml
=
libvlc_media_list_new
(
vlc
);
assert
(
ml
!=
NULL
);
mlp
=
libvlc_media_list_player_new
(
vlc
,
&
ex
);
catch
();
...
...
@@ -255,8 +255,8 @@ static void test_media_list_player_next(const char** argv, int argc)
md
=
libvlc_media_new
(
vlc
,
file
,
&
ex
);
catch
();
ml
=
libvlc_media_list_new
(
vlc
,
&
ex
);
catch
(
);
ml
=
libvlc_media_list_new
(
vlc
);
assert
(
ml
!=
NULL
);
mlp
=
libvlc_media_list_player_new
(
vlc
,
&
ex
);
catch
();
...
...
@@ -331,8 +331,8 @@ static void test_media_list_player_pause_stop(const char** argv, int argc)
md
=
libvlc_media_new
(
vlc
,
file
,
&
ex
);
catch
();
ml
=
libvlc_media_list_new
(
vlc
,
&
ex
);
catch
(
);
ml
=
libvlc_media_list_new
(
vlc
);
assert
(
ml
!=
NULL
);
mlp
=
libvlc_media_list_player_new
(
vlc
,
&
ex
);
...
...
@@ -378,8 +378,8 @@ static void test_media_list_player_play_item_at_index(const char** argv, int arg
md
=
libvlc_media_new
(
vlc
,
file
,
&
ex
);
catch
();
ml
=
libvlc_media_list_new
(
vlc
,
&
ex
);
catch
(
);
ml
=
libvlc_media_list_new
(
vlc
);
assert
(
ml
!=
NULL
);
mlp
=
libvlc_media_list_player_new
(
vlc
,
&
ex
);
...
...
@@ -458,23 +458,23 @@ static void test_media_list_player_playback_options (const char** argv, int argc
md5
=
libvlc_media_new
(
vlc
,
file
,
&
ex
);
catch
();
ml
=
libvlc_media_list_new
(
vlc
,
&
ex
);
catch
(
);
ml
=
libvlc_media_list_new
(
vlc
);
assert
(
ml
!=
NULL
);
ml2
=
libvlc_media_list_new
(
vlc
,
&
ex
);
catch
(
);
ml2
=
libvlc_media_list_new
(
vlc
);
assert
(
ml2
!=
NULL
);
ml3
=
libvlc_media_list_new
(
vlc
,
&
ex
);
catch
(
);
ml3
=
libvlc_media_list_new
(
vlc
);
assert
(
ml3
!=
NULL
);
ml4
=
libvlc_media_list_new
(
vlc
,
&
ex
);
catch
(
);
ml4
=
libvlc_media_list_new
(
vlc
);
assert
(
ml4
!=
NULL
);
ml5
=
libvlc_media_list_new
(
vlc
,
&
ex
);
catch
(
);
ml5
=
libvlc_media_list_new
(
vlc
);
assert
(
ml5
!=
NULL
);
ml6
=
libvlc_media_list_new
(
vlc
,
&
ex
);
catch
(
);
ml6
=
libvlc_media_list_new
(
vlc
);
assert
(
ml6
!=
NULL
);
media_list_add_file_path
(
vlc
,
ml2
,
file
);
media_list_add_file_path
(
vlc
,
ml2
,
file
);
...
...
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