Commit d19f27a9 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vaapi: use driver name (rather than VA-API ABI version) as description

parent 4db3b62d
...@@ -150,7 +150,6 @@ static int Open( vlc_va_t *va, int i_codec_id, int i_thread_count ) ...@@ -150,7 +150,6 @@ static int Open( vlc_va_t *va, int i_codec_id, int i_thread_count )
} }
/* */ /* */
va->description = NULL;
sys->i_config_id = VA_INVALID_ID; sys->i_config_id = VA_INVALID_ID;
sys->i_context_id = VA_INVALID_ID; sys->i_context_id = VA_INVALID_ID;
sys->image.image_id = VA_INVALID_ID; sys->image.image_id = VA_INVALID_ID;
...@@ -190,9 +189,6 @@ static int Open( vlc_va_t *va, int i_codec_id, int i_thread_count ) ...@@ -190,9 +189,6 @@ static int Open( vlc_va_t *va, int i_codec_id, int i_thread_count )
goto error; goto error;
} }
if( asprintf( &va->description, "VA API v%d.%d", major, minor ) < 0 )
va->description = NULL;
/* Check if the selected profile is supported */ /* Check if the selected profile is supported */
i_profiles_nb = vaMaxNumProfiles( sys->p_display ); i_profiles_nb = vaMaxNumProfiles( sys->p_display );
p_profiles_list = calloc( i_profiles_nb, sizeof( VAProfile ) ); p_profiles_list = calloc( i_profiles_nb, sizeof( VAProfile ) );
...@@ -243,10 +239,10 @@ static int Open( vlc_va_t *va, int i_codec_id, int i_thread_count ) ...@@ -243,10 +239,10 @@ static int Open( vlc_va_t *va, int i_codec_id, int i_thread_count )
vlc_mutex_init(&sys->lock); vlc_mutex_init(&sys->lock);
va->sys = sys; va->sys = sys;
va->description = (char *)vaQueryVendorString( sys->p_display );
return VLC_SUCCESS; return VLC_SUCCESS;
error: error:
free( va->description );
if( sys->p_display != NULL ) if( sys->p_display != NULL )
vaTerminate( sys->p_display ); vaTerminate( sys->p_display );
#ifdef VLC_VA_BACKEND_XLIB #ifdef VLC_VA_BACKEND_XLIB
...@@ -579,7 +575,6 @@ static void Delete( vlc_va_t *va ) ...@@ -579,7 +575,6 @@ static void Delete( vlc_va_t *va )
{ {
vlc_va_sys_t *sys = va->sys; vlc_va_sys_t *sys = va->sys;
Close( sys ); Close( sys );
free( va->description );
free( sys ); free( sys );
} }
......
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