[vlc-devel] [vlc-commits] Qt: adapt menus to new Audio Device list
Rémi Denis-Courmont
remi at remlab.net
Mon Apr 22 17:40:51 CEST 2013
Le lundi 22 avril 2013 18:35:53, Jean-Baptiste Kempf a écrit :
> @@ -1524,6 +1525,35 @@ void VLCMenuBar::DoAction( QObject *data )
> var_Set( p_object, var, val );
> }
>
> +void VLCMenuBar::updateAudioDevice( intf_thread_t * p_intf, audio_output_t
> *p_aout, QMenu *current ) +{
> + char **ids, **names;
> + char *selected;
> +
> + if( !p_aout )
> + return;
> +
> + current->clear();
> + int i_result = aout_DevicesList( p_aout, &ids, &names);
> + selected = aout_DeviceGet( p_aout );
Hmm, I cannot see where all those strings and tables are free()d?
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list