mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 01:31:03 +00:00
rtppassthrough: fix rtp-stats message compatibility with GstRTPBasePayload
"clock-rate" and "pt" are G_TYPE_UINT in the base class, so let's
keep them like that here too, since the entire purposes of the
passthrough element is to fake being a payloader. The types in the
message don't have to be consistent with the types in the caps.
Reverts part of commit a6fa53b7
of !7526
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7552#note_2576653
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7783>
This commit is contained in:
parent
36b32de831
commit
bf00524c41
2 changed files with 3 additions and 3 deletions
|
@ -16378,7 +16378,7 @@
|
||||||
"construct": false,
|
"construct": false,
|
||||||
"construct-only": false,
|
"construct-only": false,
|
||||||
"controllable": false,
|
"controllable": false,
|
||||||
"default": "application/x-rtp-payload-stats, clock-rate=(int)0, running-time=(guint64)0, seqnum=(uint)0, timestamp=(uint)0, ssrc=(uint)0, pt=(int)128, seqnum-offset=(uint)0, timestamp-offset=(uint)0;",
|
"default": "application/x-rtp-payload-stats, clock-rate=(uint)0, running-time=(guint64)0, seqnum=(uint)0, timestamp=(uint)0, ssrc=(uint)0, pt=(uint)128, seqnum-offset=(uint)0, timestamp-offset=(uint)0;",
|
||||||
"mutable": "null",
|
"mutable": "null",
|
||||||
"readable": true,
|
"readable": true,
|
||||||
"type": "GstStructure",
|
"type": "GstStructure",
|
||||||
|
|
|
@ -555,10 +555,10 @@ gst_rtp_passthrough_pay_create_stats (GstRtpPassthroughPay * self)
|
||||||
}
|
}
|
||||||
|
|
||||||
return gst_structure_new ("application/x-rtp-payload-stats", "clock-rate",
|
return gst_structure_new ("application/x-rtp-payload-stats", "clock-rate",
|
||||||
G_TYPE_INT, self->clock_rate, "running-time", G_TYPE_UINT64,
|
G_TYPE_UINT, (guint) self->clock_rate, "running-time", G_TYPE_UINT64,
|
||||||
running_time, "seqnum", G_TYPE_UINT, (guint) self->seqnum, "timestamp",
|
running_time, "seqnum", G_TYPE_UINT, (guint) self->seqnum, "timestamp",
|
||||||
G_TYPE_UINT, (guint) self->timestamp, "ssrc", G_TYPE_UINT, self->ssrc,
|
G_TYPE_UINT, (guint) self->timestamp, "ssrc", G_TYPE_UINT, self->ssrc,
|
||||||
"pt", G_TYPE_INT, self->pt, "seqnum-offset", G_TYPE_UINT,
|
"pt", G_TYPE_UINT, self->pt, "seqnum-offset", G_TYPE_UINT,
|
||||||
(guint) self->seqnum_offset, "timestamp-offset", G_TYPE_UINT,
|
(guint) self->seqnum_offset, "timestamp-offset", G_TYPE_UINT,
|
||||||
(guint) self->timestamp_offset, NULL);
|
(guint) self->timestamp_offset, NULL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue