Qt4 - Prepare for get FPS.
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 15 Oct 2007 08:46:33 +0000 (08:46 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 15 Oct 2007 08:46:33 +0000 (08:46 +0000)
modules/gui/qt4/components/infopanels.cpp
modules/gui/qt4/components/infopanels.hpp

index acce017..55b4c7e 100644 (file)
@@ -515,6 +515,7 @@ InputStatsPanel::InputStatsPanel( QWidget *parent,
                            "0", video, "" );
     CREATE_AND_ADD_TO_CAT( vlost_frames_stat, qtr("Lost frames"),
                            "0", video, "" );
+    CREATE_AND_ADD_TO_CAT( vfps_stat, qtr("FPS"), "0", video, "" );
 
     CREATE_AND_ADD_TO_CAT( send_stat, qtr("Sent packets"), "0", streaming, "" );
     CREATE_AND_ADD_TO_CAT( send_bytes_stat, qtr("Sent bytes"),
@@ -566,6 +567,8 @@ void InputStatsPanel::update( input_item_t *p_item )
     UPDATE( vdecoded_stat, "%5i", p_item->p_stats->i_decoded_video );
     UPDATE( vdisplayed_stat, "%5i", p_item->p_stats->i_displayed_pictures );
     UPDATE( vlost_frames_stat, "%5i", p_item->p_stats->i_lost_pictures );
+/*  UPDATE( vfps_stat, "%5f", p_item->p_stats->i_lost_pictures );
+input_Control( p_input_thread, INPUT_GET_VIDEO_FPS, &f_fps */
 
     /* Sout */
     UPDATE( send_stat, "%5i", p_item->p_stats->i_sent_packets );
index 6194b35..0242723 100644 (file)
@@ -128,6 +128,7 @@ private:
     QTreeWidgetItem *vdecoded_stat;
     QTreeWidgetItem *vdisplayed_stat;
     QTreeWidgetItem *vlost_frames_stat;
+    QTreeWidgetItem *vfps_stat;
 
     QTreeWidgetItem *streaming;
     QTreeWidgetItem *send_stat;