Eliminate redundant casts to/from void* in Ffmpeg player

This commit is contained in:
Igor Kushnir 2018-03-21 18:51:18 +02:00
parent bd95948264
commit 2e25be8f71
2 changed files with 3 additions and 3 deletions

View file

@ -61,10 +61,10 @@ AudioPlayer::~AudioPlayer()
ao_shutdown();
}
void AudioPlayer::playMemory( const void * ptr, int size )
void AudioPlayer::playMemory( const char * ptr, int size )
{
emit cancelPlaying( false );
QByteArray audioData( ( char * )ptr, size );
QByteArray audioData( ptr, size );
DecoderThread * thread = new DecoderThread( audioData, this );
connect( thread, SIGNAL( error( QString ) ), this, SIGNAL( error( QString ) ) );

View file

@ -18,7 +18,7 @@ class AudioPlayer : public QObject
public:
static AudioPlayer & instance();
void playMemory( const void * ptr, int size );
void playMemory( const char * ptr, int size );
void stop();
signals: