Skip to content

Commit

Permalink
vpu: fb_bufferpool cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Rafael Giani <[email protected]>
  • Loading branch information
dv1 committed Oct 8, 2013
1 parent 6a51216 commit 096fe9a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/vpu/fb_buffer_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ static void gst_imx_vpu_fb_buffer_pool_release_buffer(GstBufferPool *pool, GstBu

if (vpu_meta->framebuffer == NULL)
{
GST_DEBUG_OBJECT(pool, "buffer %p does not have VPU metadata - nothing to clear", buffer);
GST_DEBUG_OBJECT(pool, "buffer %p does not have VPU metadata - nothing to clear", (gpointer)buffer);
return;
}

Expand All @@ -181,13 +181,13 @@ static void gst_imx_vpu_fb_buffer_pool_release_buffer(GstBufferPool *pool, GstBu
{
vpu_meta->not_displayed_yet = FALSE;
vpu_pool->framebuffers->num_available_framebuffers++;
GST_DEBUG_OBJECT(pool, "cleared buffer %p", buffer);
GST_DEBUG_OBJECT(pool, "cleared buffer %p", (gpointer)buffer);
}
}
else if (!vpu_pool->framebuffers->decenc_states.dec.decoder_open)
GST_DEBUG_OBJECT(pool, "not clearing buffer %p, since VPU decodr is closed", buffer);
GST_DEBUG_OBJECT(pool, "not clearing buffer %p, since VPU decoder is closed", (gpointer)buffer);
else
GST_DEBUG_OBJECT(pool, "buffer %p already cleared", buffer);
GST_DEBUG_OBJECT(pool, "buffer %p already cleared", (gpointer)buffer);

g_mutex_unlock(&(vpu_pool->framebuffers->available_fb_mutex));
}
Expand Down Expand Up @@ -267,21 +267,21 @@ gboolean gst_imx_vpu_set_buffer_contents(GstBuffer *buffer, GstImxVpuFramebuffer
video_meta = gst_buffer_get_video_meta(buffer);
if (video_meta == NULL)
{
GST_ERROR("buffer with pointer %p has no video metadata", buffer);
GST_ERROR("buffer with pointer %p has no video metadata", (gpointer)buffer);
return FALSE;
}

vpu_meta = GST_IMX_VPU_BUFFER_META_GET(buffer);
if (vpu_meta == NULL)
{
GST_ERROR("buffer with pointer %p has no VPU metadata", buffer);
GST_ERROR("buffer with pointer %p has no VPU metadata", (gpointer)buffer);
return FALSE;
}

phys_mem_meta = GST_IMX_PHYS_MEM_META_GET(buffer);
if (phys_mem_meta == NULL)
{
GST_ERROR("buffer with pointer %p has no phys mem metadata", buffer);
GST_ERROR("buffer with pointer %p has no phys mem metadata", (gpointer)buffer);
return FALSE;
}

Expand Down

0 comments on commit 096fe9a

Please sign in to comment.