Changeset 4ec615d89a46281055b35bdd5a2bc7935b6ae0d8
- Timestamp:
- 05/07/08 21:43:53
(3 months ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1210189433 +0300
- git-parent:
[19bd84c786fecb77531073b697aad4d3c221d15d]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1210189433 +0300
- Message:
vlc_object_find*: don't check that refcount is zero
Besides, we assert that this isn't the case right before...
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r19bd84c |
r4ec615d |
|
| 745 | 745 | vlc_mutex_lock( &structure_lock ); |
|---|
| 746 | 746 | |
|---|
| | 747 | assert( vlc_internals( p_this )->i_refcount > 0 ); |
|---|
| | 748 | |
|---|
| 747 | 749 | /* If we are of the requested type ourselves, don't look further */ |
|---|
| 748 | | if( !(i_mode & FIND_STRICT) && p_this->i_object_type == i_type |
|---|
| 749 | | && vlc_internals( p_this )->i_refcount > 0 ) |
|---|
| | 750 | if( !(i_mode & FIND_STRICT) && p_this->i_object_type == i_type ) |
|---|
| 750 | 751 | { |
|---|
| 751 | 752 | vlc_object_yield_locked( p_this ); |
|---|
| … | … | |
| 803 | 804 | if( !(i_mode & FIND_STRICT) |
|---|
| 804 | 805 | && p_this->psz_object_name |
|---|
| 805 | | && !strcmp( p_this->psz_object_name, psz_name ) |
|---|
| 806 | | && vlc_internals( p_this )->i_refcount > 0 ) |
|---|
| | 806 | && !strcmp( p_this->psz_object_name, psz_name ) ) |
|---|
| 807 | 807 | { |
|---|
| 808 | 808 | vlc_object_yield_locked( p_this ); |
|---|