Skip to content

Commit

Permalink
chore: move definition of old ffmpeg api to CAudioStream.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Almamu committed Jul 14, 2024
1 parent 94f382d commit 2ab211d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions src/WallpaperEngine/Audio/CAudioStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ extern "C" {

#include "WallpaperEngine/Audio/CAudioContext.h"

// TODO: FIND A BETTER PLACE TO DO THIS? OLD_API MIGHT EXIST BUT THIS DEFINE MIGHT NOT BE DEFINED...
#ifndef FF_API_FIFO_OLD_API
#define FF_API_FIFO_OLD_API (LIBAVUTIL_VERSION_MAJOR < 59)
#endif

namespace WallpaperEngine::Audio {
class CAudioContext;

Expand Down
5 changes: 0 additions & 5 deletions src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,3 @@

#include "WallpaperEngine/Core/Wallpapers/CWeb.h"
#include "WallpaperEngine/Logging/CLog.h"

// TODO: FIND A BETTER PLACE TO DO THIS? OLD_API MIGHT EXIST BUT THIS DEFINE MIGHT NOT BE DEFINED...
#ifndef FF_API_FIFO_OLD_API
#define FF_API_FIFO_OLD_API (LIBAVUTIL_VERSION_MAJOR < 59)
#endif

0 comments on commit 2ab211d

Please sign in to comment.