Commit c765c37a authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Pass the new length though lengthChanged signal.

parent 21662337
......@@ -111,7 +111,7 @@ void MediaPlayer::callbacks( const libvlc_event_t* ev
self->emit positionChanged( event->u.media_player_position_changed.new_position );
break;
case libvlc_MediaPlayerLengthChanged:
self->emit lengthChanged();
self->emit lengthChanged( event->u.media_player_length_changed.new_length );
break;
case libvlc_MediaPlayerSnapshotTaken:
self->emit snapshotTaken( event->u.media_player_snapshot_taken.psz_filename );
......
......@@ -79,7 +79,7 @@ namespace LibVLCpp
void stopped();
void endReached();
void positionChanged( float );
void lengthChanged();
void lengthChanged( qint64 );
};
}
......
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