- Added a check if the returned bin object is null.
If it is null, we throw a MediaTransporterException
with an appropriate error message and error code.
Change-Id: I825c37a4ff6a0eb1d652e4e2fc059ab453ae34fd
Name: capi-media-transporter
Summary: A Media Transporter library in Tizen Native API
-Version: 1.2.3
+Version: 1.2.4
Release: 0
Group: Multimedia/API
License: Apache-2.0
}
GstBin* bin = GST_BIN(gst_bin_new(nullptr));
+ if (!bin)
+ throw MediaTransporterException(MTPR_ERROR_INVALID_OPERATION, "Failed to create media packet source bin");
try {
gst::_addElementsToBin(bin, elements);