-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update StreamManager.h #289
Conversation
During compilation of inputstream.ffmpegdirect-20.3.0-Nexus on Slackware aarch64 I got the error: /home/john/Downloads/addons/inputstream.ffmpegdirect/src/StreamManager.h:60:16: error: �..virtual void InputStreamFFmpegDirect::SetVideoResolution(int, int)�.. marked �..override�.., but does not override 60 | virtual void SetVideoResolution(int width, int height) override; => Solved by removing "override" from line 60 in StreamManager.h
I don’t understand why this change is required. The signature of the method is correct and matches the API. |
Here is the API signature: //============================================================================
/// @brief Notify current screen resolution
///
/// @param[in] width Width to set
/// @param[in] height Height to set
///
virtual void SetVideoResolution(unsigned int width, unsigned int height) {}
//----------------------------------------------------------------------------
//============================================================================
/// @brief Notify current screen resolution and max screen resolution allowed
///
/// @param[in] width Width to set
/// @param[in] height Height to set
/// @param[in] maxWidth Max width allowed
/// @param[in] maxHeight Max height allowed
///
virtual void SetVideoResolution(unsigned int width,
unsigned int height,
unsigned int maxWidth,
unsigned int maxHeight)
{
} |
The API is identical on both the Nexus and Omega branches. So I'm not sure where the signature coming from your error is from, with Is it possible you are compiling against wrong source for xbmc? |
I have used: |
As a test I have also tried for Omega: the error does not appear. Also tested for Matrix => only two errors about missing #include<cstdint> as mentioned in issue 288, but not the error mentioned in this PR. Build again for 20.3-Nexus, override error still appears. |
So why not just use Omega? It will be released in a couple of weeks anyway. |
After adapting the code I could built the addon successfully for Nexus. It works. There is no SlackBuild for Kodi Omega yet. I can do the build according the README from Kodi. The only reason for me could be to check the CEC adapter will be available. For Matrix and Nexus it is missing if you compile on Slackware arm despite of libcec is found during configuring. |
Ok, fair. Then I think it’s likely best to stick with the build you have for now. And then switch to Omega once it’s ready. |
I decided to try Kodi Omega and build it successfully, also inputstream.ffmpegdirec, inputstream.rtmp and pvr.iptvsimple are fine, only inputstream.adaptive couldn't be compiled:
I will close this PR, because the override error is not valid for Kodi Omega. |
Please create an issue on the inputstream.adaptive GitHub for this. They should be able to help. You can also mention me on the issue so I can follow progress. |
During compilation of inputstream.ffmpegdirect-20.3.0-Nexus on Slackware aarch64 I got the error:
/home/john/Downloads/addons/inputstream.ffmpegdirect/src/StreamManager.h:60:16: error: �..virtual void InputStreamFFmpegDirect::SetVideoResolution(int, int)�.. marked �..override�.., but does not override 60 | virtual void SetVideoResolution(int width, int height) override;
=> Solved by removing "override" from line 60 in StreamManager.h