Commit 631f3415 authored by Ilkka Ollakka's avatar Ilkka Ollakka

Missed this, connect mediainfo-stats also inputmanager for statsupdate.

parent ebec8934
...@@ -112,7 +112,8 @@ MediaInfoDialog::MediaInfoDialog( intf_thread_t *_p_intf, ...@@ -112,7 +112,8 @@ MediaInfoDialog::MediaInfoDialog( intf_thread_t *_p_intf,
update( p_item, true, true ); update( p_item, true, true );
if( stats ) if( stats )
ON_TIMEOUT( updateOnTimeOut() ); CONNECT( THEMIM->getIM(), statisticsUpdated( input_item_t*),
this, updateStats( input_item_t*));
readSettings( "Mediainfo", QSize( 600 , 480 ) ); readSettings( "Mediainfo", QSize( 600 , 480 ) );
} }
...@@ -160,21 +161,9 @@ void MediaInfoDialog::update( input_thread_t *p_input ) ...@@ -160,21 +161,9 @@ void MediaInfoDialog::update( input_thread_t *p_input )
vlc_object_release( p_input ); vlc_object_release( p_input );
} }
void MediaInfoDialog::updateOnTimeOut() void MediaInfoDialog::updateStats( input_item_t *p_input)
{ {
/* Timer runs at 150 ms, dont' update more than 2 times per second update( p_input, false, false);
i_runs++;
if( i_runs % 4 != 0 ) return;*/
/* Get Input and clear if non-existant */
input_thread_t *p_input = THEMIM->getInput();
if( p_input && !p_input->b_dead )
{
vlc_object_hold( p_input );
update( input_GetItem(p_input), false, false);
vlc_object_release( p_input );
}
} }
void MediaInfoDialog::update( input_item_t *p_item, void MediaInfoDialog::update( input_item_t *p_item,
......
...@@ -86,7 +86,7 @@ public slots: ...@@ -86,7 +86,7 @@ public slots:
void update( input_item_t *, bool, bool ); void update( input_item_t *, bool, bool );
private slots: private slots:
void updateOnTimeOut(); void updateStats( input_item_t *);
void close(); void close();
void clear(); void clear();
void saveMeta(); void saveMeta();
......
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