Changeset 88fc2c2874b49d4a3619049480e15b0c23113287
- Timestamp:
- 01/28/08 17:19:38
(7 months ago)
- Author:
- Rafaël Carré <funman@videolan.org>
- git-committer:
- Rafaël Carré <funman@videolan.org> 1201537178 +0000
- git-parent:
[b941c1e48ddf3de05bde370ab6495f4580587dda]
- git-author:
- Rafaël Carré <funman@videolan.org> 1201537178 +0000
- Message:
libvlc_release(): removes unused exception
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r5c2aa69 |
r88fc2c2 |
|
| 668 | 668 | vlcDataObject->onClose(); |
|---|
| 669 | 669 | |
|---|
| 670 | | libvlc_release(p_libvlc, NULL ); |
|---|
| | 670 | libvlc_release(p_libvlc); |
|---|
| 671 | 671 | } |
|---|
| 672 | 672 | return S_OK; |
|---|
| r9df6f20 |
r88fc2c2 |
|
| 82 | 82 | instance = getClassInstance( env, _this ); |
|---|
| 83 | 83 | |
|---|
| 84 | | libvlc_release( (libvlc_instance_t *) instance, NULL); |
|---|
| | 84 | libvlc_release( (libvlc_instance_t *) instance ); |
|---|
| 85 | 85 | |
|---|
| 86 | 86 | return; |
|---|
| r528f1c6 |
r88fc2c2 |
|
| 112 | 112 | vlcInstance_dealloc( PyObject *self ) |
|---|
| 113 | 113 | { |
|---|
| 114 | | libvlc_exception_t ex; |
|---|
| 115 | | libvlc_release( LIBVLC_INSTANCE->p_instance, &ex ); |
|---|
| | 114 | libvlc_release( LIBVLC_INSTANCE->p_instance ); |
|---|
| 116 | 115 | PyObject_DEL( self ); |
|---|
| 117 | 116 | } |
|---|
| rc77ca89 |
r88fc2c2 |
|
| 124 | 124 | * \param p_instance the instance to destroy |
|---|
| 125 | 125 | */ |
|---|
| 126 | | VLC_PUBLIC_API void libvlc_release( libvlc_instance_t *, libvlc_exception_t * ); |
|---|
| | 126 | VLC_PUBLIC_API void libvlc_release( libvlc_instance_t * ); |
|---|
| 127 | 127 | |
|---|
| 128 | 128 | /** |
|---|
| r0b319e4 |
r88fc2c2 |
|
| 270 | 270 | libvlc_log_close(libvlc_log, NULL); |
|---|
| 271 | 271 | if( libvlc_instance ) |
|---|
| 272 | | libvlc_release(libvlc_instance, NULL ); |
|---|
| | 272 | libvlc_release(libvlc_instance); |
|---|
| 273 | 273 | } |
|---|
| 274 | 274 | |
|---|
| rc4f7a35 |
r88fc2c2 |
|
| 147 | 147 | } |
|---|
| 148 | 148 | |
|---|
| 149 | | void libvlc_release( libvlc_instance_t *p_instance, libvlc_exception_t *p_e ) |
|---|
| | 149 | void libvlc_release( libvlc_instance_t *p_instance ) |
|---|
| 150 | 150 | { |
|---|
| 151 | 151 | vlc_mutex_t *lock = &p_instance->instance_lock; |
|---|
| r48f7ca7 |
r88fc2c2 |
|
| 104 | 104 | ARRAY_RESET( p_em->listeners_groups ); |
|---|
| 105 | 105 | |
|---|
| 106 | | libvlc_release( p_em->p_libvlc_instance, NULL ); |
|---|
| | 106 | libvlc_release( p_em->p_libvlc_instance ); |
|---|
| 107 | 107 | free( p_em ); |
|---|
| 108 | 108 | } |
|---|
| r4650afe |
r88fc2c2 |
|
| 77 | 77 | mediacontrol_exit( mediacontrol_Instance *self ) |
|---|
| 78 | 78 | { |
|---|
| 79 | | libvlc_exception_t ex; |
|---|
| 80 | | libvlc_exception_init( &ex ); |
|---|
| 81 | | |
|---|
| 82 | | libvlc_release( self->p_instance, &ex ); |
|---|
| | 79 | libvlc_release( self->p_instance ); |
|---|
| 83 | 80 | } |
|---|
| 84 | 81 | |
|---|
| rec99b9d |
r88fc2c2 |
|
| 77 | 77 | free( p_q->psz_tag_key ); |
|---|
| 78 | 78 | |
|---|
| 79 | | libvlc_release( p_q->p_libvlc_instance, NULL ); |
|---|
| | 79 | libvlc_release( p_q->p_libvlc_instance ); |
|---|
| 80 | 80 | free( p_q ); |
|---|
| 81 | 81 | } |
|---|
| r99fab90 |
r88fc2c2 |
|
| 72 | 72 | |
|---|
| 73 | 73 | libvlc_retain (vlc); |
|---|
| 74 | | libvlc_release (vlc, &ex); |
|---|
| 75 | | catch (); |
|---|
| 76 | | libvlc_release (vlc, &ex); |
|---|
| 77 | | catch (); |
|---|
| | 74 | libvlc_release (vlc); |
|---|
| | 75 | libvlc_release (vlc); |
|---|
| 78 | 76 | } |
|---|
| 79 | 77 | |
|---|