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
9b05547a
Commit
9b05547a
authored
Aug 19, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused system_End() parameter
parent
b3c55707
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
29 deletions
+19
-29
src/libvlc.c
src/libvlc.c
+8
-8
src/libvlc.h
src/libvlc.h
+1
-1
src/posix/darwin_specific.c
src/posix/darwin_specific.c
+1
-2
src/posix/linux_specific.c
src/posix/linux_specific.c
+1
-3
src/posix/specific.c
src/posix/specific.c
+1
-2
src/win32/specific.c
src/win32/specific.c
+7
-13
No files found.
src/libvlc.c
View file @
9b05547a
...
...
@@ -580,7 +580,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
{
msg_Err
(
p_libvlc
,
"D-Bus problem"
);
free
(
psz_mrl
);
system_End
(
p_libvlc
);
system_End
(
);
exit
(
1
);
}
...
...
@@ -591,7 +591,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
{
dbus_message_unref
(
p_dbus_msg
);
free
(
psz_mrl
);
system_End
(
p_libvlc
);
system_End
(
);
exit
(
1
);
}
free
(
psz_mrl
);
...
...
@@ -600,7 +600,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
DBUS_TYPE_OBJECT_PATH
,
&
psz_after_track
)
)
{
dbus_message_unref
(
p_dbus_msg
);
system_End
(
p_libvlc
);
system_End
(
);
exit
(
1
);
}
...
...
@@ -612,7 +612,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
DBUS_TYPE_BOOLEAN
,
&
b_play
)
)
{
dbus_message_unref
(
p_dbus_msg
);
system_End
(
p_libvlc
);
system_End
(
);
exit
(
1
);
}
...
...
@@ -622,7 +622,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
{
msg_Err
(
p_libvlc
,
"D-Bus problem"
);
dbus_message_unref
(
p_dbus_msg
);
system_End
(
p_libvlc
);
system_End
(
);
exit
(
1
);
}
...
...
@@ -630,7 +630,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
{
msg_Err
(
p_libvlc
,
"D-Bus problem"
);
dbus_message_unref
(
p_dbus_msg
);
system_End
(
p_libvlc
);
system_End
(
);
exit
(
1
);
}
dbus_connection_flush
(
p_conn
);
...
...
@@ -641,7 +641,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
}
/* processes all command line MRLs */
/* bye bye */
system_End
(
p_libvlc
);
system_End
(
);
exit
(
0
);
}
}
...
...
@@ -1037,7 +1037,7 @@ void libvlc_InternalDestroy( libvlc_int_t *p_libvlc )
if
(
i_instances
==
0
)
{
/* System specific cleaning code */
system_End
(
p_libvlc
);
system_End
(
);
}
vlc_mutex_unlock
(
&
global_lock
);
...
...
src/libvlc.h
View file @
9b05547a
...
...
@@ -39,7 +39,7 @@ size_t vlc_towc (const char *str, uint32_t *restrict pwc);
*/
void
system_Init
(
void
);
void
system_Configure
(
libvlc_int_t
*
,
int
,
const
char
*
const
[]
);
void
system_End
(
libvlc_int_t
*
);
void
system_End
(
void
);
/*
* Threads subsystem
...
...
src/posix/darwin_specific.c
View file @
9b05547a
...
...
@@ -166,9 +166,8 @@ void system_Configure( libvlc_int_t *p_this,
/*****************************************************************************
* system_End: free the program path.
*****************************************************************************/
void
system_End
(
libvlc_int_t
*
p_this
)
void
system_End
(
void
)
{
(
void
)
p_this
;
free
(
psz_vlcpath
);
psz_vlcpath
=
NULL
;
}
...
...
src/posix/linux_specific.c
View file @
9b05547a
...
...
@@ -119,12 +119,10 @@ void system_Configure (libvlc_int_t *libvlc,
(
void
)
libvlc
;
(
void
)
argc
;
(
void
)
argv
;
}
void
system_End
(
libvlc_int_t
*
libvlc
)
void
system_End
(
void
)
{
vlc_mutex_lock
(
&
once
.
lock
);
if
(
--
once
.
refs
==
0
)
unset_libvlc_path
();
vlc_mutex_unlock
(
&
once
.
lock
);
(
void
)
libvlc
;
}
src/posix/specific.c
View file @
9b05547a
...
...
@@ -44,7 +44,6 @@ void system_Configure (libvlc_int_t *libvlc,
(
void
)
libvlc
;
(
void
)
argc
;
(
void
)
argv
;
}
void
system_End
(
libvlc_int_t
*
libvlc
)
void
system_End
(
void
)
{
(
void
)
libvlc
;
}
src/win32/specific.c
View file @
9b05547a
...
...
@@ -260,7 +260,7 @@ void system_Configure( libvlc_int_t *p_this, int i_argc, const char *const ppsz_
ReleaseMutex
(
hmutex
);
/* Bye bye */
system_End
(
p_this
);
system_End
(
);
exit
(
0
);
}
}
...
...
@@ -371,26 +371,20 @@ LRESULT CALLBACK WMCOPYWNDPROC( HWND hwnd, UINT uMsg, WPARAM wParam,
/*****************************************************************************
* system_End: terminate winsock.
*****************************************************************************/
void
system_End
(
libvlc_int_t
*
p_this
)
void
system_End
(
void
)
{
HWND
ipcwindow
;
if
(
p_this
)
{
free
(
psz_vlcpath
);
psz_vlcpath
=
NULL
;
}
if
(
p_helper
&&
p_helper
->
p_parent
==
VLC_OBJECT
(
p_this
)
)
free
(
psz_vlcpath
);
psz_vlcpath
=
NULL
;
/* FIXME: thread-safety... */
if
(
p_helper
)
{
/* this is the first instance (in a one-instance system)
* it is the owner of the helper thread
*/
if
(
(
ipcwindow
=
FindWindow
(
0
,
L"VLC ipc "
VERSION
)
)
!=
0
)
{
SendMessage
(
ipcwindow
,
WM_QUIT
,
0
,
0
);
}
/* FIXME: thread-safety... */
vlc_object_release
(
p_helper
);
p_helper
=
NULL
;
}
...
...
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