Commit 0b4f69e8 authored by Jean-Paul Saman's avatar Jean-Paul Saman

codec/avcodec/vaapi_x11: remove debugging

parent 7661b66b
......@@ -407,20 +407,6 @@ error:
return VLC_EGENERIC;
}
static void DumpSurfaceState( vlc_va_t *p_external )
{
vlc_va_vaapi_t *p_va = vlc_va_vaapi_Get(p_external);
msg_Dbg( p_external->obj, "Dumping Surface Array Content" );
for( int i = 0; i < p_va->i_surface_count; i++ )
{
vlc_va_surface_t *p_surface = &p_va->p_surface[i];
msg_Dbg( p_external->obj, " %2d: id = %d, order = %3d, refcount = %d, state = %d",
i, p_surface->i_id, p_surface->i_order,
p_surface->i_refcount, (int)p_surface->i_state );
}
}
static vlc_va_surface_t *FindSurface( vlc_va_t *p_external, const VASurfaceID i_surface_id )
{
vlc_va_vaapi_t *p_va = vlc_va_vaapi_Get(p_external);
......@@ -431,9 +417,6 @@ static vlc_va_surface_t *FindSurface( vlc_va_t *p_external, const VASurfaceID i_
vlc_va_surface_t *p_tmp = &p_va->p_surface[i];
if( p_tmp->i_id == i_surface_id )
{
//if( p_tmp->i_state == DISPLAY || p_tmp->i_state == DECODE )
// DumpSurfaceState( p_external );
assert( p_tmp->i_state == DECODE );
assert( p_tmp->i_refcount == 1 );
......@@ -451,7 +434,6 @@ static int DisplayPicture( vlc_va_t *p_external, picture_t *p_picture, AVFrame *
p_va->conn->lock();
msg_Info( p_external->obj, "No. Surfaces %d", p_va->i_surface_count );
VASurfaceID i_surface_id = (VASurfaceID)(uintptr_t)p_ff->data[3];
#if VA_CHECK_VERSION(0,31,0)
......
......@@ -1147,7 +1147,7 @@ static void DisplayVASurface(vout_display_t *vd, VASurfaceID surface, picture_t
if (status != VA_STATUS_SUCCESS)
msg_Err(vd, "failed displaying picture: %d (surface id=%d): %p",
status, surface, picture);
msg_Dbg(vd, "diplayed picture (refcount %d)", picture->i_refcount);
sys->conn->unlock();
}
......@@ -1271,7 +1271,7 @@ static void PictureUnlock(picture_t *picture)
if (surface->i_refcount > 0)
surface->i_refcount--;
assert(surface->i_refcount == 0);
//assert(surface->i_refcount == 0);
surface->i_refcount = 0;
surface->i_cache = VA_INVALID_ID;
surface->i_state = FREE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment