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

Commit bfb487a6 authored by Greg Kaiser's avatar Greg Kaiser
Browse files

media: Fix MediaCodesXmlParser Result bug

In the constructor, we want to assign our new error string to
the struct member, instead of to the function argument.

Bug: 129710438
Test: TreeHugger
Change-Id: Id3a16fb048b3f5db97e455f6baaaec153b6bf6f0
parent 3350096b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -148,7 +148,7 @@ struct MediaCodecsXmlParser::Impl {
            : mStatus(s),
            : mStatus(s),
              mError(error) {
              mError(error) {
            if (error.empty() && s) {
            if (error.empty() && s) {
                error = "Failed (" + std::string(asString(s)) + ")";
                mError = "Failed (" + std::string(asString(s)) + ")";
            }
            }
        }
        }
        operator status_t() const { return mStatus; }
        operator status_t() const { return mStatus; }