mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-03 15:06:34 +00:00
vdpau: add debug on GstVdpDevice destroy
This commit is contained in:
parent
0ffaf06a9a
commit
8e66a17830
2 changed files with 4 additions and 0 deletions
|
@ -221,6 +221,8 @@ device_destroyed_cb (gpointer data, GObject * object)
|
|||
GHashTableIter iter;
|
||||
gpointer device;
|
||||
|
||||
GST_DEBUG ("Removing object from hash table");
|
||||
|
||||
g_hash_table_iter_init (&iter, devices_hash);
|
||||
while (g_hash_table_iter_next (&iter, NULL, &device)) {
|
||||
if (device == object) {
|
||||
|
|
|
@ -178,10 +178,12 @@ gst_vdp_mpeg_decoder_decode (GstVdpMpegDecoder * mpeg_dec,
|
|||
outbuf = gst_vdp_video_buffer_new (dec->device, VDP_CHROMA_TYPE_420,
|
||||
dec->width, dec->height);
|
||||
GST_BUFFER_TIMESTAMP (outbuf) = timestamp;
|
||||
|
||||
if (info->forward_reference != VDP_INVALID_HANDLE &&
|
||||
info->picture_coding_type != I_FRAME)
|
||||
gst_vdp_video_buffer_add_reference (outbuf,
|
||||
GST_VDP_VIDEO_BUFFER (mpeg_dec->f_buffer));
|
||||
|
||||
if (info->backward_reference != VDP_INVALID_HANDLE)
|
||||
gst_vdp_video_buffer_add_reference (outbuf,
|
||||
GST_VDP_VIDEO_BUFFER (mpeg_dec->b_buffer));
|
||||
|
|
Loading…
Reference in a new issue