vdpau: add debug on GstVdpDevice destroy

This commit is contained in:
Carl-Anton Ingmarsson 2009-05-05 23:19:56 +02:00 committed by Jan Schmidt
parent 0ffaf06a9a
commit 8e66a17830
2 changed files with 4 additions and 0 deletions

View file

@ -221,6 +221,8 @@ device_destroyed_cb (gpointer data, GObject * object)
GHashTableIter iter; GHashTableIter iter;
gpointer device; gpointer device;
GST_DEBUG ("Removing object from hash table");
g_hash_table_iter_init (&iter, devices_hash); g_hash_table_iter_init (&iter, devices_hash);
while (g_hash_table_iter_next (&iter, NULL, &device)) { while (g_hash_table_iter_next (&iter, NULL, &device)) {
if (device == object) { if (device == object) {

View file

@ -178,10 +178,12 @@ gst_vdp_mpeg_decoder_decode (GstVdpMpegDecoder * mpeg_dec,
outbuf = gst_vdp_video_buffer_new (dec->device, VDP_CHROMA_TYPE_420, outbuf = gst_vdp_video_buffer_new (dec->device, VDP_CHROMA_TYPE_420,
dec->width, dec->height); dec->width, dec->height);
GST_BUFFER_TIMESTAMP (outbuf) = timestamp; GST_BUFFER_TIMESTAMP (outbuf) = timestamp;
if (info->forward_reference != VDP_INVALID_HANDLE && if (info->forward_reference != VDP_INVALID_HANDLE &&
info->picture_coding_type != I_FRAME) info->picture_coding_type != I_FRAME)
gst_vdp_video_buffer_add_reference (outbuf, gst_vdp_video_buffer_add_reference (outbuf,
GST_VDP_VIDEO_BUFFER (mpeg_dec->f_buffer)); GST_VDP_VIDEO_BUFFER (mpeg_dec->f_buffer));
if (info->backward_reference != VDP_INVALID_HANDLE) if (info->backward_reference != VDP_INVALID_HANDLE)
gst_vdp_video_buffer_add_reference (outbuf, gst_vdp_video_buffer_add_reference (outbuf,
GST_VDP_VIDEO_BUFFER (mpeg_dec->b_buffer)); GST_VDP_VIDEO_BUFFER (mpeg_dec->b_buffer));