SVACE esplusplayer: fix potential uninitialization issues
authorubuntu <ubuntu@samsung.com>
Wed, 10 Jul 2024 03:40:25 +0000 (20:40 -0700)
committerubuntu <ubuntu@samsung.com>
Wed, 10 Jul 2024 03:40:25 +0000 (20:40 -0700)
src/mixer/include_internal/mixer/tizen/tizenbufferphyaddraccessor.h
ut/include/esplusplayer/esreader.hpp

index bc0a0ea877b6ede28efde36f2fbb23eb27b00db0..22eabf3debeb65f3454ee56c20a320e07599c357 100644 (file)
@@ -31,7 +31,7 @@ class AbstractTizenBufferPhyAddrAccessor : public PhysicalAddressAccessor {
       const BufferDefaultType& buffer) = 0;
 
  private:
-  BufferDefaultType buffer_;
+  BufferDefaultType buffer_ = nullptr;
   BufferPhysicalAddrType handle_ = nullptr;
 };
 
@@ -66,4 +66,4 @@ class TizenWritableBufferPhyAddrAccessor
 };
 }  // namespace esplusplayer
 
-#endif  // __ESPLUSPLAYER_MIXER_TIZEN_BUFFER_PHYSICAL_ADDRESS_ACCESOR_H__
\ No newline at end of file
+#endif  // __ESPLUSPLAYER_MIXER_TIZEN_BUFFER_PHYSICAL_ADDRESS_ACCESOR_H__
index 4adf3b9a2b4fa252312530922cffbe21b7975ba9..947b49291b0f57ce47a20ba8a312b31ae88eb823 100644 (file)
@@ -288,8 +288,8 @@ private:
   uint64_t last_pts_before_repeat = 0;
   bool use_realtime_interval_to_submit_packet = false;
   system_clock::time_point first_read_time;
-  uint64_t first_pts;
+  uint64_t first_pts = 0;
   uint64_t number_of_read_packet = 0;
 };
 
-#endif  // __ESPLUSPLAYER_UT_INCLUDE_ES_READER_H__
\ No newline at end of file
+#endif  // __ESPLUSPLAYER_UT_INCLUDE_ES_READER_H__