[1.2.5] Fix svace issue(DEREF_OF_NULL.RET.STAT) 35/318335/3 accepted/tizen_unified_toolchain accepted/tizen/9.0/unified/20241030.233435 accepted/tizen/unified/20240927.171117 accepted/tizen/unified/toolchain/20241004.101341 accepted/tizen/unified/x/20240929.082755 accepted/tizen/unified/x/asan/20241013.235654 tizen_9.0_m2_release
authorGilbok Lee <gilbok.lee@samsung.com>
Fri, 27 Sep 2024 03:26:09 +0000 (12:26 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Fri, 27 Sep 2024 03:35:14 +0000 (12:35 +0900)
- Patch unmodified files in
  https://review.tizen.org/gerrit/#/c/platform/core/api/mediatransporter/+/317656/

Change-Id: Id130f66a708772d7fa9c95028db930dcc79399ec

packaging/capi-media-transporter.spec
src/MediaSourceBinAudioTest.cpp
src/MediaSourceBinVideoTest.cpp

index 5b664728c7f3a263aacbcac0011b7c6d154689d4..0e82f4647a1d5602364a71671db6dbd4a4b128ca 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-transporter
 Summary:    A Media Transporter library in Tizen Native API
-Version:    1.2.4
+Version:    1.2.5
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 7bb53dd1c1fa7325e424b8b921fcdd45dbee8622..478974239b3ca293d4e126afc924d4ecf7a4be6a 100644 (file)
@@ -68,7 +68,9 @@ MediaSourceBinInfo MediaSourceBinAudioTest::generate()
                throw;
        }
 
-       GstBin* bin = GST_BIN(gst_bin_new("auditestbin"));
+       GstBin* bin = GST_BIN(gst_bin_new("audiotestbin"));
+       if (!bin)
+               throw MediaTransporterException(MTPR_ERROR_INVALID_OPERATION, "Failed to create audio test source bin");
 
        try {
                gst::_addElementsToBin(bin, elements);
index 649bd6d8bc2f32299328a0c2f9ed71cb78ed79a8..3d652c331620cc1655c84ca57bd49f6d65c99632 100644 (file)
@@ -68,6 +68,8 @@ MediaSourceBinInfo MediaSourceBinVideoTest::generate()
        }
 
        GstBin* bin = GST_BIN(gst_bin_new("videotestbin"));
+       if (!bin)
+               throw MediaTransporterException(MTPR_ERROR_INVALID_OPERATION, "Failed to create video test source bin");
 
        try {
                gst::_addElementsToBin(bin, elements);