Fix tuner example crash.
Bug: 195717690
Fix: 195717690
Test: atest VtsHalTvTunerTargetTest
Change-Id: Ie1ac0f12f9802ac55f1e35ff8dc7c0c34ccce086
diff --git a/tv/tuner/aidl/default/Dvr.h b/tv/tuner/aidl/default/Dvr.h
index 68933ae..2e96449 100644
--- a/tv/tuner/aidl/default/Dvr.h
+++ b/tv/tuner/aidl/default/Dvr.h
@@ -57,8 +57,7 @@
class Dvr : public BnDvr {
public:
- Dvr(DvrType type, uint32_t bufferSize, const std::shared_ptr<IDvrCallback>& cb,
- std::shared_ptr<Demux> demux);
+ Dvr(DvrType type, uint32_t bufferSize, const std::shared_ptr<IDvrCallback>& cb, Demux* demux);
~Dvr();
::ndk::ScopedAStatus getQueueDesc(
@@ -88,7 +87,7 @@
private:
// Demux service
- std::shared_ptr<Demux> mDemux;
+ Demux* mDemux;
DvrType mType;
uint32_t mBufferSize;