diff options
author | Christophe Thommeret <hftom@free.fr> | 2008-12-01 21:06:57 +0000 |
---|---|---|
committer | Christophe Thommeret <hftom@free.fr> | 2008-12-01 21:06:57 +0000 |
commit | bd3cfd3d8236c6c8485b1d0b3d9836ba1d1305a5 (patch) | |
tree | bc8ff771e3b13aa7aec6861e79d2757a6047961f | |
parent | e7037ea0808a464e87cd3b3446d05ccc8dddab42 (diff) | |
download | xine-lib-bd3cfd3d8236c6c8485b1d0b3d9836ba1d1305a5.tar.gz xine-lib-bd3cfd3d8236c6c8485b1d0b3d9836ba1d1305a5.tar.bz2 |
Fix vo_cap_vdpau_h264.
-rw-r--r-- | src/video_out/video_out_vdpau.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/video_out/video_out_vdpau.c b/src/video_out/video_out_vdpau.c index 5bbbd5784..7d5da96c1 100644 --- a/src/video_out/video_out_vdpau.c +++ b/src/video_out/video_out_vdpau.c @@ -911,11 +911,16 @@ static vo_driver_t *vdpau_open_plugin (video_driver_class_t *class_gen, const vo this->capabilities = VO_CAP_YV12 | VO_CAP_YUY2 | VO_CAP_CROP; ok = 0; - uint32_t dummy; - vdp_decoder_query_capabilities( vdp_device, VDP_DECODER_PROFILE_H264_BASELINE, &ok, &dummy, &dummy, &dummy, &dummy ); - if ( ok ) + uint32_t mw, mh, ml, mr; + st = vdp_decoder_query_capabilities( vdp_device, VDP_DECODER_PROFILE_H264_MAIN, &ok, &ml, &mr, &mw, &mh ); + if ( st != VDP_STATUS_OK ) + printf( "vo_vdpau: getting h264_supported failed! : %s\n", vdp_get_error_string( st ) ); + else if ( !ok ) + printf( "vo_vdpau: no support for h264 ! : no ok\n" ); + else this->capabilities |= VO_CAP_VDPAU_H264; + return &this->vo_driver; } |