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

Commit 17459336 authored by Wei Jia's avatar Wei Jia
Browse files

MediaPlayer2: call close when reset

Test: MediaPlayer2Test pass
Bug: 63934228
Change-Id: I88f95abbcca7c66929cc5aeb491b817344d32e83
parent fddc1453
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -354,6 +354,9 @@ NuPlayer2::GenericSource::~GenericSource() {
        mLooper->unregisterHandler(id());
        mLooper->stop();
    }
    if (mDataSource != NULL) {
        mDataSource->close();
    }
    resetDataSource();
}