mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
rtp: Fix request-extension signal call
Signal is registered as taking a guint however was being passed a guint64 which fails on 32-bit. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1102>
This commit is contained in:
parent
87193af4d5
commit
7725c90d5c
2 changed files with 12 additions and 12 deletions
|
@ -524,7 +524,7 @@ gst_rtp_base_depayload_setcaps (GstRTPBaseDepayload * filter, GstCaps * caps)
|
||||||
const GValue *val;
|
const GValue *val;
|
||||||
const gchar *uri = NULL;
|
const gchar *uri = NULL;
|
||||||
gchar *nptr;
|
gchar *nptr;
|
||||||
guint64 ext_id;
|
guint ext_id;
|
||||||
GstRTPHeaderExtension *ext = NULL;
|
GstRTPHeaderExtension *ext = NULL;
|
||||||
|
|
||||||
errno = 0;
|
errno = 0;
|
||||||
|
@ -571,7 +571,7 @@ gst_rtp_base_depayload_setcaps (GstRTPBaseDepayload * filter, GstCaps * caps)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
GST_DEBUG_OBJECT (filter, "extension id %" G_GUINT64_FORMAT
|
GST_DEBUG_OBJECT (filter, "extension id %u"
|
||||||
"was replaced with a different extension uri "
|
"was replaced with a different extension uri "
|
||||||
"original:\'%s' vs \'%s\'", ext_id,
|
"original:\'%s' vs \'%s\'", ext_id,
|
||||||
gst_rtp_header_extension_get_uri (ext), uri);
|
gst_rtp_header_extension_get_uri (ext), uri);
|
||||||
|
@ -586,20 +586,20 @@ gst_rtp_base_depayload_setcaps (GstRTPBaseDepayload * filter, GstCaps * caps)
|
||||||
|
|
||||||
/* if no extension, attempt to request one */
|
/* if no extension, attempt to request one */
|
||||||
if (!ext) {
|
if (!ext) {
|
||||||
GST_DEBUG_OBJECT (filter, "requesting extension for id %"
|
GST_DEBUG_OBJECT (filter, "requesting extension for id %u"
|
||||||
G_GUINT64_FORMAT " and uri %s", ext_id, uri);
|
" and uri %s", ext_id, uri);
|
||||||
g_signal_emit (filter,
|
g_signal_emit (filter,
|
||||||
gst_rtp_base_depayload_signals[SIGNAL_REQUEST_EXTENSION], 0,
|
gst_rtp_base_depayload_signals[SIGNAL_REQUEST_EXTENSION], 0,
|
||||||
ext_id, uri, &ext);
|
ext_id, uri, &ext);
|
||||||
GST_DEBUG_OBJECT (filter, "request returned extension %p \'%s\' "
|
GST_DEBUG_OBJECT (filter, "request returned extension %p \'%s\' "
|
||||||
"for id %" G_GUINT64_FORMAT " and uri %s", ext,
|
"for id %u and uri %s", ext,
|
||||||
ext ? GST_OBJECT_NAME (ext) : "", ext_id, uri);
|
ext ? GST_OBJECT_NAME (ext) : "", ext_id, uri);
|
||||||
|
|
||||||
/* We require the caller to set the appropriate extension if it's required */
|
/* We require the caller to set the appropriate extension if it's required */
|
||||||
if (ext && gst_rtp_header_extension_get_id (ext) != ext_id) {
|
if (ext && gst_rtp_header_extension_get_id (ext) != ext_id) {
|
||||||
g_warning ("\'request-extension\' signal provided an rtp header "
|
g_warning ("\'request-extension\' signal provided an rtp header "
|
||||||
"extension for uri \'%s\' that does not match the requested "
|
"extension for uri \'%s\' that does not match the requested "
|
||||||
"extension id %" G_GUINT64_FORMAT, uri, ext_id);
|
"extension id %u", uri, ext_id);
|
||||||
gst_clear_object (&ext);
|
gst_clear_object (&ext);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1372,7 +1372,7 @@ gst_rtp_base_payload_negotiate (GstRTPBasePayload * payload)
|
||||||
const GValue *val;
|
const GValue *val;
|
||||||
const gchar *uri = NULL;
|
const gchar *uri = NULL;
|
||||||
gchar *nptr;
|
gchar *nptr;
|
||||||
guint64 ext_id;
|
guint ext_id;
|
||||||
GstRTPHeaderExtension *ext = NULL;
|
GstRTPHeaderExtension *ext = NULL;
|
||||||
|
|
||||||
errno = 0;
|
errno = 0;
|
||||||
|
@ -1420,7 +1420,7 @@ gst_rtp_base_payload_negotiate (GstRTPBasePayload * payload)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
GST_DEBUG_OBJECT (payload, "extension id %" G_GUINT64_FORMAT
|
GST_DEBUG_OBJECT (payload, "extension id %u"
|
||||||
"was replaced with a different extension uri "
|
"was replaced with a different extension uri "
|
||||||
"original:\'%s' vs \'%s\'", ext_id,
|
"original:\'%s' vs \'%s\'", ext_id,
|
||||||
gst_rtp_header_extension_get_uri (ext), uri);
|
gst_rtp_header_extension_get_uri (ext), uri);
|
||||||
|
@ -1435,20 +1435,20 @@ gst_rtp_base_payload_negotiate (GstRTPBasePayload * payload)
|
||||||
|
|
||||||
/* if no extension, attempt to request one */
|
/* if no extension, attempt to request one */
|
||||||
if (!ext) {
|
if (!ext) {
|
||||||
GST_DEBUG_OBJECT (payload, "requesting extension for id %"
|
GST_DEBUG_OBJECT (payload, "requesting extension for id %u"
|
||||||
G_GUINT64_FORMAT " and uri %s", ext_id, uri);
|
" and uri %s", ext_id, uri);
|
||||||
g_signal_emit (payload,
|
g_signal_emit (payload,
|
||||||
gst_rtp_base_payload_signals[SIGNAL_REQUEST_EXTENSION], 0,
|
gst_rtp_base_payload_signals[SIGNAL_REQUEST_EXTENSION], 0,
|
||||||
ext_id, uri, &ext);
|
ext_id, uri, &ext);
|
||||||
GST_DEBUG_OBJECT (payload, "request returned extension %p \'%s\' "
|
GST_DEBUG_OBJECT (payload, "request returned extension %p \'%s\' "
|
||||||
"for id %" G_GUINT64_FORMAT " and uri %s", ext,
|
"for id %u and uri %s", ext,
|
||||||
ext ? GST_OBJECT_NAME (ext) : "", ext_id, uri);
|
ext ? GST_OBJECT_NAME (ext) : "", ext_id, uri);
|
||||||
|
|
||||||
/* We require caller to set the appropriate extension if it's required */
|
/* We require caller to set the appropriate extension if it's required */
|
||||||
if (ext && gst_rtp_header_extension_get_id (ext) != ext_id) {
|
if (ext && gst_rtp_header_extension_get_id (ext) != ext_id) {
|
||||||
g_warning ("\'request-extension\' signal provided an rtp header "
|
g_warning ("\'request-extension\' signal provided an rtp header "
|
||||||
"extension for uri \'%s\' that does not match the requested "
|
"extension for uri \'%s\' that does not match the requested "
|
||||||
"extension id %" G_GUINT64_FORMAT, uri, ext_id);
|
"extension id %u", uri, ext_id);
|
||||||
gst_clear_object (&ext);
|
gst_clear_object (&ext);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue