summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/vdpau/surface.c
diff options
context:
space:
mode:
authorChristian König <[email protected]>2011-04-03 00:09:01 +0200
committerChristian König <[email protected]>2011-04-03 00:09:01 +0200
commitd5b05a869a71147987a1c1d6c84f8df17148f031 (patch)
treea5cfa8811bcd36bbe2db28eb4b6d95b3c8810869 /src/gallium/state_trackers/vdpau/surface.c
parent7dc87676f203f1df935a97348e1fb15274be4642 (diff)
[g3dvl] start over with vdpau decoding
Diffstat (limited to 'src/gallium/state_trackers/vdpau/surface.c')
-rw-r--r--src/gallium/state_trackers/vdpau/surface.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gallium/state_trackers/vdpau/surface.c b/src/gallium/state_trackers/vdpau/surface.c
index a625ea401ba..e63e631fd83 100644
--- a/src/gallium/state_trackers/vdpau/surface.c
+++ b/src/gallium/state_trackers/vdpau/surface.c
@@ -77,7 +77,7 @@ vlVdpVideoSurfaceCreate(VdpDevice device, VdpChromaType chroma_type,
return VDP_STATUS_OK;
no_handle:
- FREE(p_surf->psurface);
+ //FREE(p_surf->psurface);
inv_device:
no_surf:
FREE(p_surf);
@@ -97,12 +97,12 @@ vlVdpVideoSurfaceDestroy(VdpVideoSurface surface)
if (!p_surf)
return VDP_STATUS_INVALID_HANDLE;
- if (p_surf->psurface) {
- if (p_surf->psurface->texture) {
- if (p_surf->psurface->texture->screen)
- p_surf->psurface->context->surface_destroy(p_surf->psurface->context, p_surf->psurface);
- }
- }
+ //if (p_surf->psurface) {
+ // if (p_surf->psurface->texture) {
+ // if (p_surf->psurface->texture->screen)
+ // p_surf->psurface->context->surface_destroy(p_surf->psurface->context, p_surf->psurface);
+ // }
+ //}
FREE(p_surf);
return VDP_STATUS_OK;
}
@@ -142,8 +142,8 @@ vlVdpVideoSurfaceGetBitsYCbCr(VdpVideoSurface surface,
if (!p_surf)
return VDP_STATUS_INVALID_HANDLE;
- if (!p_surf->psurface)
- return VDP_STATUS_RESOURCES;
+ //if (!p_surf->psurface)
+ // return VDP_STATUS_RESOURCES;
return VDP_STATUS_OK;
}