]> git.sesse.net Git - vlc/blob - modules/gui/qt4/components/info_panels.cpp
2ac9e5abb8cfc8f736d77af859a1f152a19e9fbe
[vlc] / modules / gui / qt4 / components / info_panels.cpp
1 /*****************************************************************************
2  * infopanels.cpp : Panels for the information dialogs
3  ****************************************************************************
4  * Copyright (C) 2006-2007 the VideoLAN team
5  * $Id$
6  *
7  * Authors: ClĂ©ment Stenac <zorglub@videolan.org>
8  *          Jean-Baptiste Kempf <jb@videolan.org>
9  *          Ilkka Ollakka <ileoo@videolan.org>
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
24  *****************************************************************************/
25
26 #ifdef HAVE_CONFIG_H
27 # include "config.h"
28 #endif
29
30 #include "qt4.hpp"
31 #include "components/info_panels.hpp"
32 #include "components/interface_widgets.hpp"
33
34 #include <assert.h>
35 #include <vlc_url.h>
36
37 #include <QTreeWidget>
38 #include <QHeaderView>
39 #include <QList>
40 #include <QStringList>
41 #include <QGridLayout>
42 #include <QLineEdit>
43 #include <QLabel>
44 #include <QSpinBox>
45
46 /************************************************************************
47  * Single panels
48  ************************************************************************/
49
50 /**
51  * First Panel - Meta Info
52  * All the usual MetaData are displayed and can be changed.
53  **/
54 MetaPanel::MetaPanel( QWidget *parent,
55                       intf_thread_t *_p_intf )
56                       : QWidget( parent ), p_intf( _p_intf )
57 {
58     QGridLayout *metaLayout = new QGridLayout( this );
59
60     int line = 0; /* Counter for GridLayout */
61     p_input = NULL;
62
63 #define ADD_META( string, widget ) {                                      \
64     metaLayout->addWidget( new QLabel( qtr( string ) + " :" ), line, 0 ); \
65     widget = new QLineEdit;                                               \
66     metaLayout->addWidget( widget, line, 1, 1, 9 );                       \
67     line++;            }
68
69     /* Title, artist and album*/
70     ADD_META( VLC_META_TITLE, title_text ); /* OK */
71     ADD_META( VLC_META_ARTIST, artist_text ); /* OK */
72     ADD_META( VLC_META_ALBUM, collection_text ); /* OK */
73
74     /* Genre Name */
75     /* TODO List id3genres.h is not includable yet ? */
76     genre_text = new QLineEdit;
77     metaLayout->addWidget( new QLabel( qtr( VLC_META_GENRE ) + " :" ), line, 0 );
78     metaLayout->addWidget( genre_text, line, 1, 1, 3 );
79
80     /* Number - on the same line */
81     metaLayout->addWidget( new QLabel( qtr( VLC_META_TRACK_NUMBER )  + " :" ),
82                   line, 5, 1, 2  );
83     seqnum_text = new QLineEdit;
84     seqnum_text->setInputMask("0000");
85     seqnum_text->setAlignment( Qt::AlignRight );
86     metaLayout->addWidget( seqnum_text, line, 7, 1, 3 );
87     line++;
88
89     /* Date (Should be in years) */
90     date_text = new QLineEdit;
91     date_text->setInputMask("0000");
92     date_text->setAlignment( Qt::AlignRight );
93     metaLayout->addWidget( new QLabel( qtr( VLC_META_DATE ) + " :" ), line, 0 );
94     metaLayout->addWidget( date_text, line, 1, 1, 3 );
95
96     /* Rating - on the same line */
97     /*
98     metaLayout->addWidget( new QLabel( qtr( VLC_META_RATING ) + " :" ), line, 4, 1, 2 );
99     rating_text = new QSpinBox; setSpinBounds( rating_text );
100     metaLayout->addWidget( rating_text, line, 6, 1, 1 );
101     */
102     /* Language on the same line */
103     metaLayout->addWidget( new QLabel( qfu( VLC_META_LANGUAGE ) + " :" ), line, 5, 1, 2 );
104     language_text = new QLineEdit;
105     language_text->setReadOnly( true );
106     metaLayout->addWidget( language_text, line,  7, 1, 3 );
107     line++;
108
109     /* ART_URL */
110     art_cover = new CoverArtLabel( this, p_intf );
111     metaLayout->addWidget( art_cover, line, 8, 4, 2, Qt::AlignRight );
112
113 /* Settings is unused */
114 /*    l->addWidget( new QLabel( qtr( VLC_META_SETTING ) + " :" ), line, 5 );
115     setting_text = new QLineEdit;
116     l->addWidget( setting_text, line, 6, 1, 4 ); */
117
118 /* Less used metadata */
119 #define ADD_META_2( string, widget ) {                                    \
120     metaLayout->addWidget( new QLabel( qtr( string ) + " :" ), line, 0 ); \
121     widget = new QLineEdit;                                               \
122     metaLayout->addWidget( widget, line, 1, 1, 7 );                       \
123     line++;            }
124
125     /* Now Playing - Useful for live feeds (HTTP, DVB, ETC...) */
126     ADD_META_2( VLC_META_NOW_PLAYING, nowplaying_text );
127     nowplaying_text->setReadOnly( true );
128     ADD_META_2( VLC_META_PUBLISHER, publisher_text );
129     ADD_META_2( VLC_META_COPYRIGHT, copyright_text );
130     ADD_META_2( N_("Comments"), description_text );
131
132 /* useless metadata */
133
134     //ADD_META_2( VLC_META_ENCODED_BY, encodedby_text );
135     /*  ADD_META( TRACKID )  Useless ? */
136     /*  ADD_URI - DO not show it, done outside */
137
138     metaLayout->setColumnStretch( 1, 2 );
139     metaLayout->setColumnMinimumWidth ( 1, 80 );
140 #undef ADD_META
141 #undef ADD_META_2
142
143     CONNECT( title_text, textEdited( QString ), this, enterEditMode() );
144     CONNECT( artist_text, textEdited( QString ), this, enterEditMode() );
145     CONNECT( collection_text, textEdited( QString ), this, enterEditMode() );
146     CONNECT( genre_text, textEdited( QString ), this, enterEditMode() );
147     CONNECT( seqnum_text, textEdited( QString ), this, enterEditMode() );
148
149     CONNECT( date_text, textEdited( QString ), this, enterEditMode() );
150     CONNECT( description_text, textEdited( QString ), this, enterEditMode() );
151 /*    CONNECT( rating_text, valueChanged( QString ), this, enterEditMode( QString ) );*/
152
153     /* We are not yet in Edit Mode */
154     b_inEditMode = false;
155 }
156
157 /**
158  * Update all the MetaData and art on an "item-changed" event
159  **/
160 void MetaPanel::update( input_item_t *p_item )
161 {
162     if( !p_item )
163     {
164         clear();
165         return;
166     }
167
168     /* Don't update if you are in edit mode */
169     if( b_inEditMode ) return;
170     else p_input = p_item;
171
172     char *psz_meta;
173 #define UPDATE_META( meta, widget ) {               \
174     psz_meta = input_item_Get##meta( p_item );      \
175     if( !EMPTY_STR( psz_meta ) )                    \
176         widget->setText( qfu( psz_meta ) );         \
177     else                                            \
178         widget->setText( "" ); }                    \
179     free( psz_meta );
180
181 #define UPDATE_META_INT( meta, widget ) {           \
182     psz_meta = input_item_Get##meta( p_item );      \
183     if( !EMPTY_STR( psz_meta ) )                    \
184         widget->setValue( atoi( psz_meta ) ); }     \
185     free( psz_meta );
186
187     /* Name / Title */
188     psz_meta = input_item_GetTitleFbName( p_item );
189     if( psz_meta )
190     {
191         title_text->setText( qfu( psz_meta ) );
192         free( psz_meta );
193     }
194     else
195         title_text->setText( "" );
196
197     /* URL / URI */
198     psz_meta = input_item_GetURL( p_item );
199     if( !EMPTY_STR( psz_meta ) )
200         emit uriSet( qfu( psz_meta ) );
201     else
202     {
203         free( psz_meta );
204         psz_meta = input_item_GetURI( p_item );
205         if( !EMPTY_STR( psz_meta ) )
206             emit uriSet( qfu( psz_meta ) );
207     }
208     free( psz_meta );
209
210     /* Other classic though */
211     UPDATE_META( Artist, artist_text );
212     UPDATE_META( Genre, genre_text );
213     UPDATE_META( Copyright, copyright_text );
214     UPDATE_META( Album, collection_text );
215     UPDATE_META( Description, description_text );
216     UPDATE_META( Language, language_text );
217     UPDATE_META( NowPlaying, nowplaying_text );
218     UPDATE_META( Publisher, publisher_text );
219 //    UPDATE_META( Setting, setting_text );
220 //FIXME this is wrong if has Publisher and EncodedBy fields
221     UPDATE_META( EncodedBy, publisher_text );
222
223     UPDATE_META( Date, date_text );
224     UPDATE_META( TrackNum, seqnum_text );
225 //    UPDATE_META_INT( Rating, rating_text );
226
227 #undef UPDATE_META_INT
228 #undef UPDATE_META
229
230     // If a artURL is available as a local file, directly display it !
231
232     QString file;
233     char *psz_art = input_item_GetArtURL( p_item );
234     if( psz_art && !strncmp( psz_art, "file://", 7 ) &&
235                 decode_URI( psz_art + 7 ) )
236 #ifdef WIN32
237         file = qfu( psz_art + 8 ); // Remove extra / on Win32 URI.
238 #else
239         file = qfu( psz_art + 7 );
240 #endif
241     free( psz_art );
242
243     art_cover->showArtUpdate( file );
244
245 }
246
247 /**
248  * Save the MetaData, triggered by parent->save Button
249  **/
250 void MetaPanel::saveMeta()
251 {
252     playlist_t *p_playlist;
253
254     meta_export_t p_export;
255     p_export.p_item = p_input;
256
257     if( p_input == NULL )
258         return;
259
260     /* we can write meta data only in a file */
261     vlc_mutex_lock( &p_input->lock );
262     int i_type = p_input->i_type;
263     vlc_mutex_unlock( &p_input->lock );
264     if( i_type == ITEM_TYPE_FILE )
265     {
266         char *psz_uri_orig = input_item_GetURI( p_input );
267         char *psz_uri = psz_uri_orig;
268         if( !strncmp( psz_uri, "file://", 7 ) )
269             psz_uri += 7; /* strlen("file://") = 7 */
270
271         p_export.psz_file = strndup( psz_uri, PATH_MAX );
272         free( psz_uri_orig );
273     }
274     else
275         return;
276
277     /* now we read the modified meta data */
278     input_item_SetTitle(  p_input, qtu( title_text->text() ) );
279     input_item_SetArtist( p_input, qtu( artist_text->text() ) );
280     input_item_SetAlbum(  p_input, qtu( collection_text->text() ) );
281     input_item_SetGenre(  p_input, qtu( genre_text->text() ) );
282     input_item_SetTrackNum(  p_input, qtu( seqnum_text->text() ) );
283     input_item_SetDate(  p_input, qtu( date_text->text() ) );
284
285     input_item_SetCopyright( p_input, qtu( copyright_text->text() ) );
286     input_item_SetPublisher( p_input, qtu( publisher_text->text() ) );
287     input_item_SetDescription( p_input, qtu( description_text->text() ) );
288
289     p_playlist = pl_Hold( p_intf );
290     PL_LOCK;
291     p_playlist->p_private = &p_export;
292
293     module_t *p_mod = module_need( p_playlist, "meta writer", NULL, false );
294     if( p_mod )
295         module_unneed( p_playlist, p_mod );
296     PL_UNLOCK;
297     pl_Release( p_intf );
298
299     /* Reset the status of the mode. No need to emit any signal because parent
300        is the only caller */
301     b_inEditMode = false;
302 }
303
304
305 bool MetaPanel::isInEditMode()
306 {
307     return b_inEditMode;
308 }
309
310 void MetaPanel::enterEditMode()
311 {
312     msg_Dbg( p_intf, "Entering Edit MetaData Mode" );
313     setEditMode( true );
314 }
315
316 void MetaPanel::setEditMode( bool b_editing )
317 {
318     b_inEditMode = b_editing;
319     if( b_editing )emit editing();
320 }
321
322 /*
323  * Clear all the metadata widgets
324  */
325 void MetaPanel::clear()
326 {
327     title_text->clear();
328     artist_text->clear();
329     genre_text->clear();
330     copyright_text->clear();
331     collection_text->clear();
332     seqnum_text->clear();
333     description_text->clear();
334     date_text->clear();
335     language_text->clear();
336     nowplaying_text->clear();
337     publisher_text->clear();
338
339     setEditMode( false );
340     emit uriSet( "" );
341 }
342
343 /**
344  * Second Panel - Shows the extra metadata in a tree, non editable.
345  **/
346 ExtraMetaPanel::ExtraMetaPanel( QWidget *parent,
347                                 intf_thread_t *_p_intf )
348                                 : QWidget( parent ), p_intf( _p_intf )
349 {
350      QGridLayout *layout = new QGridLayout(this);
351
352      QLabel *topLabel = new QLabel( qtr( "Extra metadata and other information"
353                  " are shown in this panel.\n" ) );
354      topLabel->setWordWrap( true );
355      layout->addWidget( topLabel, 0, 0 );
356
357      extraMetaTree = new QTreeWidget( this );
358      extraMetaTree->setAlternatingRowColors( true );
359      extraMetaTree->setColumnCount( 2 );
360      extraMetaTree->resizeColumnToContents( 0 );
361      extraMetaTree->header()->hide();
362 /*     QStringList headerList = ( QStringList() << qtr( "Type" )
363  *                                             << qtr( "Value" ) );
364  * Useless, add this header if you think it would help the user          **
365  */
366
367      layout->addWidget( extraMetaTree, 1, 0 );
368 }
369
370 /**
371  * Update the Extra Metadata from p_meta->i_extras
372  **/
373 void ExtraMetaPanel::update( input_item_t *p_item )
374 {
375     if( !p_item )
376     {
377         clear();
378         return;
379     }
380
381     QList<QTreeWidgetItem *> items;
382
383     extraMetaTree->clear();
384
385     vlc_mutex_lock( &p_item->lock );
386     vlc_meta_t *p_meta = p_item->p_meta;
387     if( !p_meta )
388     {
389         vlc_mutex_unlock( &p_item->lock );
390         return;
391     }
392
393     vlc_dictionary_t * p_dict = &p_meta->extra_tags;
394     char ** ppsz_allkey = vlc_dictionary_all_keys( p_dict );
395
396     for( int i = 0; ppsz_allkey[i] ; i++ )
397     {
398         const char * psz_value = (const char *)vlc_dictionary_value_for_key(
399                 p_dict, ppsz_allkey[i] );
400         QStringList tempItem;
401         tempItem.append( qfu( ppsz_allkey[i] ) + " : ");
402         tempItem.append( qfu( psz_value ) );
403         items.append( new QTreeWidgetItem ( extraMetaTree, tempItem ) );
404         free( ppsz_allkey[i] );
405     }
406     vlc_mutex_unlock( &p_item->lock );
407     free( ppsz_allkey );
408
409     extraMetaTree->addTopLevelItems( items );
410     extraMetaTree->resizeColumnToContents( 0 );
411 }
412
413 /**
414  * Clear the ExtraMetaData Tree
415  **/
416 void ExtraMetaPanel::clear()
417 {
418     extraMetaTree->clear();
419 }
420
421 /**
422  * Third panel - Stream info
423  * Display all codecs and muxers info that we could gather.
424  **/
425 InfoPanel::InfoPanel( QWidget *parent,
426                       intf_thread_t *_p_intf )
427                       : QWidget( parent ), p_intf( _p_intf )
428 {
429      QGridLayout *layout = new QGridLayout(this);
430
431      QList<QTreeWidgetItem *> items;
432
433      QLabel *topLabel = new QLabel( qtr( "Information about what your media or"
434               " stream is made of.\nMuxer, Audio and Video Codecs, Subtitles "
435               "are shown." ) );
436      topLabel->setWordWrap( true );
437      layout->addWidget( topLabel, 0, 0 );
438
439      InfoTree = new QTreeWidget(this);
440      InfoTree->setColumnCount( 1 );
441      InfoTree->header()->hide();
442      layout->addWidget(InfoTree, 1, 0 );
443 }
444
445 /**
446  * Update the Codecs information on parent->update()
447  **/
448 void InfoPanel::update( input_item_t *p_item)
449 {
450     if( !p_item )
451     {
452         clear();
453         return;
454     }
455
456     InfoTree->clear();
457     QTreeWidgetItem *current_item = NULL;
458     QTreeWidgetItem *child_item = NULL;
459
460     for( int i = 0; i< p_item->i_categories ; i++)
461     {
462         current_item = new QTreeWidgetItem();
463         current_item->setText( 0, qfu(p_item->pp_categories[i]->psz_name) );
464         InfoTree->addTopLevelItem( current_item );
465
466         for( int j = 0 ; j < p_item->pp_categories[i]->i_infos ; j++ )
467         {
468             child_item = new QTreeWidgetItem ();
469             child_item->setText( 0,
470                     qfu(p_item->pp_categories[i]->pp_infos[j]->psz_name)
471                     + ": "
472                     + qfu(p_item->pp_categories[i]->pp_infos[j]->psz_value));
473
474             current_item->addChild(child_item);
475         }
476          InfoTree->setItemExpanded( current_item, true);
477     }
478 }
479
480 /**
481  * Clear the tree
482  **/
483 void InfoPanel::clear()
484 {
485     InfoTree->clear();
486 }
487
488 /**
489  * Save all the information to a file
490  * Not yet implemented.
491  **/
492 /*
493 void InfoPanel::saveCodecsInfo()
494 {}
495 */
496
497 /**
498  * Fourth Panel - Stats
499  * Displays the Statistics for reading/streaming/encoding/displaying in a tree
500  */
501 InputStatsPanel::InputStatsPanel( QWidget *parent,
502                                   intf_thread_t *_p_intf )
503                                   : QWidget( parent ), p_intf( _p_intf )
504 {
505      QGridLayout *layout = new QGridLayout(this);
506
507      QList<QTreeWidgetItem *> items;
508
509      QLabel *topLabel = new QLabel( qtr( "Statistics about the currently "
510                  "playing media or stream." ) );
511      topLabel->setWordWrap( true );
512      layout->addWidget( topLabel, 0, 0 );
513
514      StatsTree = new QTreeWidget(this);
515      StatsTree->setColumnCount( 3 );
516      StatsTree->header()->hide();
517
518 #define CREATE_TREE_ITEM( itemName, itemText, itemValue, unit ) {              \
519     itemName =                                                                 \
520       new QTreeWidgetItem((QStringList () << itemText << itemValue << unit )); \
521     itemName->setTextAlignment( 1 , Qt::AlignRight ) ; }
522
523 #define CREATE_CATEGORY( catName, itemText ) {                           \
524     CREATE_TREE_ITEM( catName, itemText , "", "" );                      \
525     catName->setExpanded( true );                                        \
526     StatsTree->addTopLevelItem( catName );    }
527
528 #define CREATE_AND_ADD_TO_CAT( itemName, itemText, itemValue, catName, unit ){ \
529     CREATE_TREE_ITEM( itemName, itemText, itemValue, unit );                   \
530     catName->addChild( itemName ); }
531
532     /* Create the main categories */
533     CREATE_CATEGORY( audio, qtr("Audio") );
534     CREATE_CATEGORY( video, qtr("Video") );
535     CREATE_CATEGORY( input, qtr("Input") );
536     CREATE_CATEGORY( streaming, qtr("Streaming") );
537
538     CREATE_AND_ADD_TO_CAT( read_media_stat, qtr("Read at media"),
539                            "0", input , "kB" );
540     CREATE_AND_ADD_TO_CAT( input_bitrate_stat, qtr("Input bitrate"),
541                            "0", input, "kb/s" );
542     CREATE_AND_ADD_TO_CAT( demuxed_stat, qtr("Demuxed"), "0", input, "kB") ;
543     CREATE_AND_ADD_TO_CAT( stream_bitrate_stat, qtr("Stream bitrate"),
544                            "0", input, "kb/s" );
545     CREATE_AND_ADD_TO_CAT( corrupted_stat, qtr("Corrupted"),
546                            "0", input, "" );
547     CREATE_AND_ADD_TO_CAT( discontinuity_stat, qtr("Discontinuities"),
548                            "0", input, "" );
549
550     CREATE_AND_ADD_TO_CAT( vdecoded_stat, qtr("Decoded blocks"),
551                            "0", video, "" );
552     CREATE_AND_ADD_TO_CAT( vdisplayed_stat, qtr("Displayed frames"),
553                            "0", video, "" );
554     CREATE_AND_ADD_TO_CAT( vlost_frames_stat, qtr("Lost frames"),
555                            "0", video, "" );
556
557     CREATE_AND_ADD_TO_CAT( send_stat, qtr("Sent packets"), "0", streaming, "" );
558     CREATE_AND_ADD_TO_CAT( send_bytes_stat, qtr("Sent bytes"),
559                            "0", streaming, "kB" );
560     CREATE_AND_ADD_TO_CAT( send_bitrate_stat, qtr("Sent bitrate"),
561                            "0", streaming, "kb/s" );
562
563     CREATE_AND_ADD_TO_CAT( adecoded_stat, qtr("Decoded blocks"),
564                            "0", audio, "" );
565     CREATE_AND_ADD_TO_CAT( aplayed_stat, qtr("Played buffers"),
566                            "0", audio, "" );
567     CREATE_AND_ADD_TO_CAT( alost_stat, qtr("Lost buffers"), "0", audio, "" );
568
569 #undef CREATE_AND_ADD_TO_CAT
570 #undef CREATE_CATEGORY
571 #undef CREATE_TREE_ITEM
572
573     input->setExpanded( true );
574     video->setExpanded( true );
575     streaming->setExpanded( true );
576     audio->setExpanded( true );
577
578     StatsTree->resizeColumnToContents( 0 );
579     StatsTree->setColumnWidth( 1 , 200 );
580
581     layout->addWidget(StatsTree, 1, 0 );
582 }
583
584 /**
585  * Update the Statistics
586  **/
587 void InputStatsPanel::update( input_item_t *p_item )
588 {
589     assert( p_item );
590     vlc_mutex_lock( &p_item->p_stats->lock );
591
592 #define UPDATE( widget, format, calc... ) \
593     { QString str; widget->setText( 1 , str.sprintf( format, ## calc ) );  }
594
595     UPDATE( read_media_stat, "%8.0f",
596             (float)(p_item->p_stats->i_read_bytes)/1000);
597     UPDATE( input_bitrate_stat, "%6.0f",
598                     (float)(p_item->p_stats->f_input_bitrate * 8000 ));
599     UPDATE( demuxed_stat, "%8.0f",
600                     (float)(p_item->p_stats->i_demux_read_bytes)/1000 );
601     UPDATE( stream_bitrate_stat, "%6.0f",
602                     (float)(p_item->p_stats->f_demux_bitrate * 8000 ));
603     UPDATE( corrupted_stat, "%5i", p_item->p_stats->i_demux_corrupted );
604     UPDATE( discontinuity_stat, "%5i", p_item->p_stats->i_demux_discontinuity );
605
606     /* Video */
607     UPDATE( vdecoded_stat, "%5i", p_item->p_stats->i_decoded_video );
608     UPDATE( vdisplayed_stat, "%5i", p_item->p_stats->i_displayed_pictures );
609     UPDATE( vlost_frames_stat, "%5i", p_item->p_stats->i_lost_pictures );
610
611     /* Sout */
612     UPDATE( send_stat, "%5i", p_item->p_stats->i_sent_packets );
613     UPDATE( send_bytes_stat, "%8.0f",
614             (float)(p_item->p_stats->i_sent_bytes)/1000 );
615     UPDATE( send_bitrate_stat, "%6.0f",
616             (float)(p_item->p_stats->f_send_bitrate*8)*1000 );
617
618     /* Audio*/
619     UPDATE( adecoded_stat, "%5i", p_item->p_stats->i_decoded_audio );
620     UPDATE( aplayed_stat, "%5i", p_item->p_stats->i_played_abuffers );
621     UPDATE( alost_stat, "%5i", p_item->p_stats->i_lost_abuffers );
622
623 #undef UPDATE
624
625     vlc_mutex_unlock(& p_item->p_stats->lock );
626 }
627
628 void InputStatsPanel::clear()
629 {
630 }
631