diff options
author | Julian Scheel <julian@jusst.de> | 2008-12-12 09:15:19 +0000 |
---|---|---|
committer | Julian Scheel <julian@jusst.de> | 2008-12-12 09:15:19 +0000 |
commit | fc85c220d809a38468704282edd34b9bb00ff911 (patch) | |
tree | eebe05c5a3fb8233de940ff5cca289032a9d6c38 /src/libvdpau/vdpau_h264.c | |
parent | 65ae9896ac134cad57835d5dcf8ec5594efe7d2c (diff) | |
download | xine-lib-fc85c220d809a38468704282edd34b9bb00ff911.tar.gz xine-lib-fc85c220d809a38468704282edd34b9bb00ff911.tar.bz2 |
Some fixes...
Diffstat (limited to 'src/libvdpau/vdpau_h264.c')
-rw-r--r-- | src/libvdpau/vdpau_h264.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libvdpau/vdpau_h264.c b/src/libvdpau/vdpau_h264.c index 1d988eeeb..ecf8d21af 100644 --- a/src/libvdpau/vdpau_h264.c +++ b/src/libvdpau/vdpau_h264.c @@ -351,6 +351,12 @@ static void vdpau_h264_decode_data (video_decoder_t *this_gen, VdpStatus status = this->vdpau_accel->vdp_decoder_render(this->decoder, surface, (VdpPictureInfo*)&pic, 1, &vdp_buffer); + // FIXME: do we really hit all cases here? + if(((uint8_t*)vdp_buffer.bitstream) != NULL) { + free(vdp_buffer.bitstream); + printf("Freed vdp_buffer.bitstream\n"); + } + if(status != VDP_STATUS_OK) xprintf(this->xine, XINE_VERBOSITY_LOG, "vdpau_h264: Decoder failure: %s\n", this->vdpau_accel->vdp_get_error_string(status)); else { |