Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e45789f authored by Bernhard Rosenkränzer's avatar Bernhard Rosenkränzer Committed by Lajos Molnar
Browse files

Fix overload of SoftVideoDecoderOMXComponent::updatePortDefinitions



An overloaded function should take the same parameters as the function
it is overloading.

Bug: 18639027
Change-Id: I8327fe1b363917515cf76c8f76bdbc05b2c0fbf0
Signed-off-by: default avatarBernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
parent 1767df77
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -353,8 +353,8 @@ void SoftMPEG4::onReset() {
    }
}

void SoftMPEG4::updatePortDefinitions() {
    SoftVideoDecoderOMXComponent::updatePortDefinitions();
void SoftMPEG4::updatePortDefinitions(bool updateCrop) {
    SoftVideoDecoderOMXComponent::updatePortDefinitions(updateCrop);

    /* We have to align our width and height - this should affect stride! */
    OMX_PARAM_PORTDEFINITIONTYPE *def = &editPortInfo(kOutputPortIndex)->mDef;
+1 −1
Original line number Diff line number Diff line
@@ -66,7 +66,7 @@ private:

    status_t initDecoder();

    virtual void updatePortDefinitions();
    virtual void updatePortDefinitions(bool updateCrop = true);
    bool handlePortSettingsChange();

    DISALLOW_EVIL_CONSTRUCTORS(SoftMPEG4);