Changeset 1c8c942251d1dbd4fe88134e4b1571da25ea4e41
- Timestamp:
- 05/27/08 17:52:39
(3 months ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1211903559 +0300
- git-parent:
[14be786c1f5cb85549cba8cc125e57bb40eda4c6]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1211903559 +0300
- Message:
Warn when pl_Yield() is not used
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r14be786 |
r1c8c942 |
|
| 711 | 711 | } |
|---|
| 712 | 712 | |
|---|
| | 713 | /* Otherwise, recursively look for the object */ |
|---|
| | 714 | if ((i_mode & 0x000f) == FIND_ANYWHERE) |
|---|
| | 715 | { |
|---|
| | 716 | #ifndef NDEBUG |
|---|
| | 717 | if (i_type == VLC_OBJECT_PLAYLIST) |
|---|
| | 718 | msg_Warn (p_this, "using vlc_object_find(VLC_OBJECT_PLAYLIST) " |
|---|
| | 719 | "instead of pl_Yield()"); |
|---|
| | 720 | #endif |
|---|
| | 721 | return vlc_object_find (p_this->p_libvlc, i_type, |
|---|
| | 722 | (i_mode & ~0x000f)|FIND_CHILD); |
|---|
| | 723 | } |
|---|
| | 724 | |
|---|
| 713 | 725 | vlc_mutex_lock( &structure_lock ); |
|---|
| 714 | | |
|---|
| 715 | | /* Otherwise, recursively look for the object */ |
|---|
| 716 | | if( (i_mode & 0x000f) == FIND_ANYWHERE ) |
|---|
| 717 | | p_found = FindObject( p_this->p_libvlc, i_type, |
|---|
| 718 | | (i_mode & ~0x000f)|FIND_CHILD ); |
|---|
| 719 | | else |
|---|
| 720 | | p_found = FindObject( p_this, i_type, i_mode ); |
|---|
| 721 | | |
|---|
| | 726 | p_found = FindObject( p_this, i_type, i_mode ); |
|---|
| 722 | 727 | vlc_mutex_unlock( &structure_lock ); |
|---|
| 723 | | |
|---|
| 724 | 728 | return p_found; |
|---|
| 725 | 729 | } |
|---|