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