rtpvp8depay: Fix crash when sending new custom event 31/271431/2
authorSangchul Lee <sc11.lee@samsung.com>
Mon, 21 Feb 2022 06:50:50 +0000 (15:50 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Mon, 21 Feb 2022 07:25:29 +0000 (16:25 +0900)
This patch fixes a seg.fault with warnings as below.

GLib-GObject-WARNING **: 13:56:46.770: ../gobject/gtype.c:4330: type id '0' is invalid
GLib-GObject-WARNING **: 13:56:46.772: can't peek value table for type '<invalid>' which is not currently referenced

[Version] 1.20.0-2
[Issue Type] Crash

Change-Id: If33c7c63e6ef14f9f5bcfaea8d0e650311ff1f16
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/gstreamer.spec
subprojects/gst-plugins-good/gst/rtp/gstrtpvp8depay.c

index 23d1ff2..8085ce3 100644 (file)
@@ -59,7 +59,7 @@
 
 Name:           %{_name}
 Version:        1.20.0
-Release:        1
+Release:        2
 Summary:        Streaming-Media Framework Runtime
 License:        LGPL-2.0+
 Group:          Multimedia/Framework
index bf97d0a..81f1f8d 100644 (file)
@@ -231,7 +231,11 @@ send_new_lost_event (GstRtpVP8Depay * self, GstClockTime timestamp,
   event = gst_event_new_custom (GST_EVENT_CUSTOM_DOWNSTREAM,
       gst_structure_new ("GstRTPPacketLost",
           "timestamp", G_TYPE_UINT64, timestamp,
+#ifdef TIZEN_FEATURE_FIX_SEG_FAULT
+          "duration", G_TYPE_UINT64, G_GUINT64_CONSTANT (0), NULL));
+#else
           "duration", G_TYPE_UINT64, 0, NULL));
+#endif
 
   GST_DEBUG_OBJECT (self, "Pushing lost event "
       "(picids 0x%x 0x%x, reason \"%s\"): %" GST_PTR_FORMAT,