Changeset c0a2676e7c7a2af609afce53b333ddee41f565ee
- Timestamp:
- 05/28/08 18:43:21
(3 months ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1211993001 +0300
- git-parent:
[8b27d7c2ab5684ca5a05b6f3e900e2cfa8a6b0ae]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1211991430 +0300
- Message:
Do not serialize DNS queries on Win32, that's slooow!
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r8b27d7c |
rc0a2676 |
|
| 675 | 675 | } |
|---|
| 676 | 676 | #endif |
|---|
| 677 | | #if defined (HAVE_GETADDRINFO) |
|---|
| 678 | | # ifdef AI_IDN |
|---|
| | 677 | #ifdef AI_IDN |
|---|
| 679 | 678 | /* Run-time I18n Domain Names support */ |
|---|
| 680 | 679 | hints.ai_flags |= AI_IDN; |
|---|
| … | … | |
| 685 | 684 | /* IDN not available: disable and retry without it */ |
|---|
| 686 | 685 | hints.ai_flags &= ~AI_IDN; |
|---|
| 687 | | # endif |
|---|
| | 686 | #endif |
|---|
| 688 | 687 | return getaddrinfo (psz_node, psz_service, &hints, res); |
|---|
| 689 | | #else |
|---|
| 690 | | int ret; |
|---|
| 691 | | vlc_value_t lock; |
|---|
| 692 | | |
|---|
| 693 | | var_Create (p_this->p_libvlc, "getaddrinfo_mutex", VLC_VAR_MUTEX); |
|---|
| 694 | | var_Get (p_this->p_libvlc, "getaddrinfo_mutex", &lock); |
|---|
| 695 | | vlc_mutex_lock (lock.p_address); |
|---|
| 696 | | |
|---|
| 697 | | ret = getaddrinfo (psz_node, psz_service, &hints, res); |
|---|
| 698 | | vlc_mutex_unlock (lock.p_address); |
|---|
| 699 | | return ret; |
|---|
| 700 | | #endif |
|---|
| 701 | 688 | } |
|---|
| 702 | 689 | |
|---|