Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
88fc2c28
Commit
88fc2c28
authored
Jan 28, 2008
by
Rafaël Carré
Browse files
libvlc_release(): removes unused exception
parent
b941c1e4
Changes
10
Hide whitespace changes
Inline
Side-by-side
activex/plugin.cpp
View file @
88fc2c28
...
...
@@ -667,7 +667,7 @@ HRESULT VLCPlugin::onClose(DWORD dwSaveOption)
_p_libvlc
=
NULL
;
vlcDataObject
->
onClose
();
libvlc_release
(
p_libvlc
,
NULL
);
libvlc_release
(
p_libvlc
);
}
return
S_OK
;
};
...
...
bindings/java/src/core-jni.cc
View file @
88fc2c28
...
...
@@ -81,7 +81,7 @@ JNIEXPORT void JNICALL Java_org_videolan_jvlc_JVLC__1destroy (JNIEnv *env, jobje
instance
=
getClassInstance
(
env
,
_this
);
libvlc_release
(
(
libvlc_instance_t
*
)
instance
,
NULL
);
libvlc_release
(
(
libvlc_instance_t
*
)
instance
);
return
;
}
...
...
bindings/python/vlc_instance.c
View file @
88fc2c28
...
...
@@ -111,8 +111,7 @@ vlcInstance_new( PyTypeObject *type, PyObject *args, PyObject *kwds )
static
void
vlcInstance_dealloc
(
PyObject
*
self
)
{
libvlc_exception_t
ex
;
libvlc_release
(
LIBVLC_INSTANCE
->
p_instance
,
&
ex
);
libvlc_release
(
LIBVLC_INSTANCE
->
p_instance
);
PyObject_DEL
(
self
);
}
...
...
include/vlc/libvlc.h
View file @
88fc2c28
...
...
@@ -123,7 +123,7 @@ VLC_PUBLIC_API int libvlc_get_vlc_id( libvlc_instance_t *p_instance );
* if it reaches zero.
* \param p_instance the instance to destroy
*/
VLC_PUBLIC_API
void
libvlc_release
(
libvlc_instance_t
*
,
libvlc_exception_t
*
);
VLC_PUBLIC_API
void
libvlc_release
(
libvlc_instance_t
*
);
/**
* Increments the reference count of a libvlc instance.
...
...
mozilla/vlcplugin.cpp
View file @
88fc2c28
...
...
@@ -269,7 +269,7 @@ VlcPlugin::~VlcPlugin()
if
(
libvlc_log
)
libvlc_log_close
(
libvlc_log
,
NULL
);
if
(
libvlc_instance
)
libvlc_release
(
libvlc_instance
,
NULL
);
libvlc_release
(
libvlc_instance
);
}
/*****************************************************************************
...
...
src/control/core.c
View file @
88fc2c28
...
...
@@ -146,7 +146,7 @@ void libvlc_retain( libvlc_instance_t *p_instance )
vlc_mutex_unlock
(
&
p_instance
->
instance_lock
);
}
void
libvlc_release
(
libvlc_instance_t
*
p_instance
,
libvlc_exception_t
*
p_e
)
void
libvlc_release
(
libvlc_instance_t
*
p_instance
)
{
vlc_mutex_t
*
lock
=
&
p_instance
->
instance_lock
;
int
refs
;
...
...
src/control/event.c
View file @
88fc2c28
...
...
@@ -103,7 +103,7 @@ void libvlc_event_manager_release( libvlc_event_manager_t * p_em )
FOREACH_END
()
ARRAY_RESET
(
p_em
->
listeners_groups
);
libvlc_release
(
p_em
->
p_libvlc_instance
,
NULL
);
libvlc_release
(
p_em
->
p_libvlc_instance
);
free
(
p_em
);
}
...
...
src/control/mediacontrol_core.c
View file @
88fc2c28
...
...
@@ -76,10 +76,7 @@ mediacontrol_Instance* mediacontrol_new( int argc, char** argv, mediacontrol_Exc
void
mediacontrol_exit
(
mediacontrol_Instance
*
self
)
{
libvlc_exception_t
ex
;
libvlc_exception_init
(
&
ex
);
libvlc_release
(
self
->
p_instance
,
&
ex
);
libvlc_release
(
self
->
p_instance
);
}
libvlc_instance_t
*
...
...
src/control/tag_query.c
View file @
88fc2c28
...
...
@@ -76,7 +76,7 @@ void libvlc_tag_query_release( libvlc_tag_query_t * p_q )
free
(
p_q
->
tag
);
free
(
p_q
->
psz_tag_key
);
libvlc_release
(
p_q
->
p_libvlc_instance
,
NULL
);
libvlc_release
(
p_q
->
p_libvlc_instance
);
free
(
p_q
);
}
...
...
src/control/testapi.c
View file @
88fc2c28
...
...
@@ -71,10 +71,8 @@ static void test_core (const char ** argv, int argc)
catch
();
libvlc_retain
(
vlc
);
libvlc_release
(
vlc
,
&
ex
);
catch
();
libvlc_release
(
vlc
,
&
ex
);
catch
();
libvlc_release
(
vlc
);
libvlc_release
(
vlc
);
}
static
void
test_media_list
(
const
char
**
argv
,
int
argc
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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