Skip to content

Commit

Permalink
Merge pull request #190 from CastagnaIT/videoresolution
Browse files Browse the repository at this point in the history
Updated SetVideoResolution due to api change
  • Loading branch information
AlwinEsch authored Sep 16, 2022
2 parents ce87db2 + 410f895 commit 156ce0a
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion inputstream.ffmpegdirect/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="inputstream.ffmpegdirect"
version="20.4.0"
version="20.5.0"
name="Inputstream FFmpeg Direct"
provider-name="Ross Nicholson">
<requires>@ADDON_DEPENDS@</requires>
Expand Down
3 changes: 3 additions & 0 deletions inputstream.ffmpegdirect/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v20.5.0
- Kodi inputstream API update to version 3.2.0

v20.4.0
- Support osx-arm64, i.e. OSX on Apple Silicon

Expand Down
2 changes: 1 addition & 1 deletion src/StreamManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ void InputStreamFFmpegDirect::DemuxSetSpeed(int speed)
m_stream->DemuxSetSpeed(speed);
}

void InputStreamFFmpegDirect::SetVideoResolution(int width, int height)
void InputStreamFFmpegDirect::SetVideoResolution(unsigned int width, unsigned int height)
{
Log(LOGLEVEL_DEBUG, "inputstream.ffmpegdirect: SetVideoResolution()");

Expand Down
6 changes: 3 additions & 3 deletions src/StreamManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class ATTR_DLL_LOCAL InputStreamFFmpegDirect
virtual DEMUX_PACKET* DemuxRead() override;
virtual bool DemuxSeekTime(double time, bool backwards, double& startpts) override;
virtual void DemuxSetSpeed(int speed) override;
virtual void SetVideoResolution(int width, int height) override;
virtual void SetVideoResolution(unsigned int width, unsigned int height) override;

virtual int GetTotalTime() override;
virtual int GetTime() override;
Expand Down Expand Up @@ -90,8 +90,8 @@ class ATTR_DLL_LOCAL InputStreamFFmpegDirect

ffmpegdirect::Properties m_properties;

int m_videoWidth;
int m_videoHeight;
unsigned int m_videoWidth;
unsigned int m_videoHeight;

std::shared_ptr<ffmpegdirect::BaseStream> m_stream;
};
2 changes: 1 addition & 1 deletion src/stream/BaseStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class BaseStream
virtual DEMUX_PACKET* DemuxRead() = 0;
virtual bool DemuxSeekTime(double time, bool backwards, double& startpts) = 0;
virtual void DemuxSetSpeed(int speed) = 0;
virtual void SetVideoResolution(int width, int height) = 0;
virtual void SetVideoResolution(unsigned int width, unsigned int height) = 0;

virtual int GetTotalTime() = 0;
virtual int GetTime() = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/stream/FFmpegStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ void FFmpegStream::DemuxSetSpeed(int speed)
}
}

void FFmpegStream::SetVideoResolution(int width, int height)
void FFmpegStream::SetVideoResolution(unsigned int width, unsigned int height)
{

}
Expand Down
2 changes: 1 addition & 1 deletion src/stream/FFmpegStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class FFmpegStream
virtual DEMUX_PACKET* DemuxRead() override;
virtual bool DemuxSeekTime(double time, bool backwards, double& startpts) override;
virtual void DemuxSetSpeed(int speed) override;
virtual void SetVideoResolution(int width, int height) override;
virtual void SetVideoResolution(unsigned int width, unsigned int height) override;

virtual int GetTotalTime() override;// { return 20; }
virtual int GetTime() override;// { return m_displayTime; }
Expand Down

0 comments on commit 156ce0a

Please sign in to comment.