Changeset 5421e9cd54ac4384583f13daf9323304e532c257
- Timestamp:
- 05/07/08 22:13:00
(3 months ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1210191180 +0300
- git-parent:
[e6e564bd147222187e1a79315fef9973b54e10ac]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1210189995 +0300
- Message:
Only insert new object into the table one initialized
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r6c385c5 |
r5421e9c |
|
| 170 | 170 | } |
|---|
| 171 | 171 | |
|---|
| 172 | | vlc_mutex_lock( &structure_lock ); |
|---|
| 173 | | p_new->i_object_id = p_libvlc_global->i_counter++; |
|---|
| 174 | | |
|---|
| 175 | | /* Wooohaa! If *this* fails, we're in serious trouble! Anyway it's |
|---|
| 176 | | * useless to try and recover anything if pp_objects gets smashed. */ |
|---|
| 177 | | TAB_APPEND( p_libvlc_global->i_objects, p_libvlc_global->pp_objects, |
|---|
| 178 | | p_new ); |
|---|
| 179 | | vlc_mutex_unlock( &structure_lock ); |
|---|
| 180 | | |
|---|
| 181 | 172 | p_priv->i_refcount = 1; |
|---|
| 182 | 173 | p_priv->pf_destructor = kVLCDestructor; |
|---|
| … | … | |
| 194 | 185 | vlc_spin_init( &p_priv->spin ); |
|---|
| 195 | 186 | p_priv->pipes[0] = p_priv->pipes[1] = -1; |
|---|
| | 187 | |
|---|
| | 188 | vlc_mutex_lock( &structure_lock ); |
|---|
| | 189 | p_new->i_object_id = p_libvlc_global->i_counter++; |
|---|
| | 190 | |
|---|
| | 191 | /* Wooohaa! If *this* fails, we're in serious trouble! Anyway it's |
|---|
| | 192 | * useless to try and recover anything if pp_objects gets smashed. */ |
|---|
| | 193 | TAB_APPEND( p_libvlc_global->i_objects, p_libvlc_global->pp_objects, |
|---|
| | 194 | p_new ); |
|---|
| | 195 | vlc_mutex_unlock( &structure_lock ); |
|---|
| 196 | 196 | |
|---|
| 197 | 197 | if( i_type == VLC_OBJECT_LIBVLC ) |
|---|