Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored and shenlebantongying committed Nov 16, 2024
1 parent 5a2fdb8 commit 796c787
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions src/audio/audioplayerfactory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ AudioPlayerFactory::AudioPlayerFactory( bool useInternalPlayer,
InternalPlayerBackend internalPlayerBackend,
QString audioPlaybackProgram ):
useInternalPlayer( useInternalPlayer ),
internalPlayerBackend( std::move(internalPlayerBackend) ),
audioPlaybackProgram( std::move(audioPlaybackProgram) )
internalPlayerBackend( std::move( internalPlayerBackend ) ),
audioPlaybackProgram( std::move( audioPlaybackProgram ) )
{
reset();
}
Expand Down
34 changes: 17 additions & 17 deletions src/audio/internalplayerbackend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,50 +2,50 @@

bool InternalPlayerBackend::anyAvailable()
{
#if defined( MAKE_FFMPEG_PLAYER ) || defined( MAKE_QTMULTIMEDIA_PLAYER )
#if defined( MAKE_FFMPEG_PLAYER ) || defined( MAKE_QTMULTIMEDIA_PLAYER )
return true;
#else
#else
return false;
#endif
#endif
}

InternalPlayerBackend InternalPlayerBackend::defaultBackend()
{
#if defined( MAKE_FFMPEG_PLAYER )
#if defined( MAKE_FFMPEG_PLAYER )
return ffmpeg();
#elif defined( MAKE_QTMULTIMEDIA_PLAYER )
#elif defined( MAKE_QTMULTIMEDIA_PLAYER )
return qtmultimedia();
#else
#else
return InternalPlayerBackend( QString() );
#endif
#endif
}

QStringList InternalPlayerBackend::nameList()
{
QStringList result;
#ifdef MAKE_FFMPEG_PLAYER
#ifdef MAKE_FFMPEG_PLAYER
result.push_back( ffmpeg().uiName() );
#endif
#ifdef MAKE_QTMULTIMEDIA_PLAYER
#endif
#ifdef MAKE_QTMULTIMEDIA_PLAYER
result.push_back( qtmultimedia().uiName() );
#endif
#endif
return result;
}

bool InternalPlayerBackend::isFfmpeg() const
{
#ifdef MAKE_FFMPEG_PLAYER
#ifdef MAKE_FFMPEG_PLAYER
return *this == ffmpeg();
#else
#else
return false;
#endif
#endif
}

bool InternalPlayerBackend::isQtmultimedia() const
{
#ifdef MAKE_QTMULTIMEDIA_PLAYER
#ifdef MAKE_QTMULTIMEDIA_PLAYER
return *this == qtmultimedia();
#else
#else
return false;
#endif
#endif
}

0 comments on commit 796c787

Please sign in to comment.