Changeset b6cdf137040a4c01b2340eb921a3509c4133a930
- Timestamp:
- 10/04/08 20:01:51
(6 months ago)
- Author:
- Jean-Paul Saman <jpsaman@videolan.org>
- git-committer:
- Jean-Paul Saman <jpsaman@videolan.org> 1207850511 +0200
- git-parent:
[35b0ece9c5d3b51728010eed05f91ef0793b5dae]
- git-author:
- Jean-Paul Saman <jpsaman@videolan.org> 1207850511 +0200
- Message:
Properly detect XvMC capabilities.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r78e39f0 |
rb6cdf13 |
|
| 427 | 427 | msg_Dbg(p_vout, "Crop = %d", p_vout->p_sys->xvmc_crop_style); |
|---|
| 428 | 428 | |
|---|
| 429 | | if( !checkXvMCCap( p_vout ) ) |
|---|
| | 429 | if( checkXvMCCap( p_vout ) == VLC_EGENERIC ) |
|---|
| 430 | 430 | { |
|---|
| 431 | 431 | msg_Err( p_vout, "no XVMC capability found" ); |
|---|
| r35b0ece |
rb6cdf13 |
|
| 746 | 746 | |
|---|
| 747 | 747 | /* |
|---|
| 748 | | * Try to create a direct rendering context. This will fail if we are not |
|---|
| 749 | | * on the displaying computer or an indirect context is not available. |
|---|
| 750 | | */ |
|---|
| | 748 | * Try to create a direct rendering context. This will fail if we are not |
|---|
| | 749 | * on the displaying computer or an indirect context is not available. |
|---|
| | 750 | */ |
|---|
| 751 | 751 | XVMCUNLOCKDISPLAY( p_vout->p_sys->p_display ); |
|---|
| 752 | 752 | curCap = p_vout->p_sys->xvmc_cap; |
|---|
| … | … | |
| 755 | 755 | curCap->max_width, |
|---|
| 756 | 756 | curCap->max_height, |
|---|
| 757 | | XVMC_DIRECT, &c) ) |
|---|
| 758 | | { |
|---|
| 759 | | p_vout->p_sys->context_flags = XVMC_DIRECT; |
|---|
| | 757 | XVMC_DIRECT, &c ) ) |
|---|
| | 758 | { |
|---|
| | 759 | msg_Dbg( p_vout, "using direct XVMC rendering context" ); |
|---|
| | 760 | p_vout->p_sys->context_flags = XVMC_DIRECT; |
|---|
| 760 | 761 | } |
|---|
| 761 | 762 | else if( Success == XvMCCreateContext( p_vout->p_sys->p_display, i_xvport, |
|---|
| … | … | |
| 763 | 764 | curCap->max_width, |
|---|
| 764 | 765 | curCap->max_height, |
|---|
| 765 | | 0, &c) ) |
|---|
| 766 | | { |
|---|
| | 766 | 0, &c ) ) |
|---|
| | 767 | { |
|---|
| | 768 | msg_Dbg( p_vout, "using default XVMC rendering context" ); |
|---|
| 767 | 769 | p_vout->p_sys->context_flags = 0; |
|---|
| 768 | 770 | } |
|---|