From: Sangchul Lee Date: Thu, 10 Mar 2022 09:43:45 +0000 (+0900) Subject: rtpvp8depay: Fix crash when making 'GstRTPPacketLost' custom event X-Git-Tag: 1.22.0~2188 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=67df5815a9be65e28b334b58d318fa1608e049d9;p=platform%2Fupstream%2Fgstreamer.git rtpvp8depay: Fix crash when making 'GstRTPPacketLost' custom event This patch fixes a seg.fault in gst_structure_new() with warnings as below. GLib-GObject-WARNING **: ../gobject/gtype.c:4330: type id '0' is invalid GLib-GObject-WARNING **: can't peek value table for type '' which is not currently referenced Part-of: --- diff --git a/subprojects/gst-plugins-good/gst/rtp/gstrtpvp8depay.c b/subprojects/gst-plugins-good/gst/rtp/gstrtpvp8depay.c index bf97d0a..99d7554 100644 --- a/subprojects/gst-plugins-good/gst/rtp/gstrtpvp8depay.c +++ b/subprojects/gst-plugins-good/gst/rtp/gstrtpvp8depay.c @@ -231,7 +231,7 @@ 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, - "duration", G_TYPE_UINT64, 0, NULL)); + "duration", G_TYPE_UINT64, G_GUINT64_CONSTANT (0), NULL)); GST_DEBUG_OBJECT (self, "Pushing lost event " "(picids 0x%x 0x%x, reason \"%s\"): %" GST_PTR_FORMAT,