[farsight2/master] Print the unsigned value with %u ...
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:20:17 PST 2008
---
gst/fsrtpconference/fs-rtp-session.c | 16 ++++++++--------
gst/fsrtpconference/fs-rtp-substream.c | 13 +++++++------
2 files changed, 15 insertions(+), 14 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c
index 0341cc6..7848f33 100644
--- a/gst/fsrtpconference/fs-rtp-session.c
+++ b/gst/fsrtpconference/fs-rtp-session.c
@@ -613,7 +613,7 @@ fs_rtp_session_constructed (GObject *object)
return;
}
- tmp = g_strdup_printf ("valve_send_%d", self->id);
+ tmp = g_strdup_printf ("valve_send_%u", self->id);
valve = gst_element_factory_make ("fsvalve", tmp);
g_free (tmp);
@@ -652,7 +652,7 @@ fs_rtp_session_constructed (GObject *object)
/* Now create the transmitter RTP funnel */
- tmp = g_strdup_printf ("recv_rtp_funnel_%d", self->id);
+ tmp = g_strdup_printf ("recv_rtp_funnel_%u", self->id);
funnel = gst_element_factory_make ("fsfunnel", tmp);
g_free (tmp);
@@ -702,7 +702,7 @@ fs_rtp_session_constructed (GObject *object)
/* Now create the transmitter RTCP funnel */
- tmp = g_strdup_printf ("recv_rtcp_funnel_%d", self->id);
+ tmp = g_strdup_printf ("recv_rtcp_funnel_%u", self->id);
funnel = gst_element_factory_make ("fsfunnel", tmp);
g_free (tmp);
@@ -751,7 +751,7 @@ fs_rtp_session_constructed (GObject *object)
/* Lets now create the RTP muxer */
- tmp = g_strdup_printf ("send_rtp_muxer_%d", self->id);
+ tmp = g_strdup_printf ("send_rtp_muxer_%u", self->id);
muxer = gst_element_factory_make ("rtpmux", tmp);
g_free (tmp);
@@ -801,7 +801,7 @@ fs_rtp_session_constructed (GObject *object)
/* Now create the transmitter RTP tee */
- tmp = g_strdup_printf ("send_rtp_tee_%d", self->id);
+ tmp = g_strdup_printf ("send_rtp_tee_%u", self->id);
tee = gst_element_factory_make ("tee", tmp);
g_free (tmp);
@@ -838,7 +838,7 @@ fs_rtp_session_constructed (GObject *object)
/* Now create the transmitter RTCP tee */
- tmp = g_strdup_printf ("send_rtcp_tee_%d", self->id);
+ tmp = g_strdup_printf ("send_rtcp_tee_%u", self->id);
tee = gst_element_factory_make ("tee", tmp);
g_free (tmp);
@@ -898,7 +898,7 @@ fs_rtp_session_constructed (GObject *object)
/* Lets now do the send_capsfilter */
- tmp = g_strdup_printf ("send_rtp_capsfilter_%d", self->id);
+ tmp = g_strdup_printf ("send_rtp_capsfilter_%u", self->id);
capsfilter = gst_element_factory_make ("capsfilter", tmp);
g_free (tmp);
@@ -1766,7 +1766,7 @@ fs_rtp_session_new_recv_codec_bin_locked (FsRtpSession *session,
return NULL;
}
- name = g_strdup_printf ("recv%d_%d", ssrc, pt);
+ name = g_strdup_printf ("recv%u_%d", ssrc, pt);
codec_bin = _create_codec_bin (blueprint, codec, name, FALSE, error);
g_free (name);
diff --git a/gst/fsrtpconference/fs-rtp-substream.c b/gst/fsrtpconference/fs-rtp-substream.c
index b078bd6..6ba0d24 100644
--- a/gst/fsrtpconference/fs-rtp-substream.c
+++ b/gst/fsrtpconference/fs-rtp-substream.c
@@ -212,7 +212,7 @@ fs_rtp_sub_stream_constructed (GObject *object)
if (!self->priv->valve) {
self->priv->construction_error = g_error_new (FS_ERROR,
FS_ERROR_CONSTRUCTION, "Could not create a fsvalve element for"
- " session substream with ssrc: %x and pt:%d", self->priv->ssrc,
+ " session substream with ssrc: %u and pt:%d", self->priv->ssrc,
self->priv->pt);
return;
}
@@ -221,7 +221,7 @@ fs_rtp_sub_stream_constructed (GObject *object)
if (!gst_bin_add (GST_BIN (self->priv->conference), self->priv->valve)) {
self->priv->construction_error = g_error_new (FS_ERROR,
FS_ERROR_CONSTRUCTION, "Could not add the fsvalve element for session"
- " substream with ssrc: %x and pt:%d to the conference bin",
+ " substream with ssrc: %u and pt:%d to the conference bin",
self->priv->ssrc, self->priv->pt);
return;
}
@@ -233,7 +233,7 @@ fs_rtp_sub_stream_constructed (GObject *object)
GST_STATE_CHANGE_FAILURE) {
self->priv->construction_error = g_error_new (FS_ERROR,
FS_ERROR_CONSTRUCTION, "Could not set the fsvalve element for session"
- " substream with ssrc: %x and pt:%d to the playing state",
+ " substream with ssrc: %u and pt:%d to the playing state",
self->priv->ssrc, self->priv->pt);
return;
}
@@ -594,7 +594,8 @@ fs_rtp_sub_stream_get_output_ghostpad (FsRtpSubStream *substream,
g_object_get (substream->priv->session, "id", &session_id, NULL);
- padname = g_strdup_printf ("src_%d_%d_%d", session_id, substream->priv->ssrc,
+ padname = g_strdup_printf ("src_%u_%u_%d", session_id,
+ substream->priv->ssrc,
substream->priv->pt);
FS_RTP_SESSION_LOCK (substream->priv->session);
@@ -614,7 +615,7 @@ fs_rtp_sub_stream_get_output_ghostpad (FsRtpSubStream *substream,
if (!ghostpad)
{
g_set_error (error, FS_ERROR, FS_ERROR_CONSTRUCTION,
- "Could not build ghostpad src_%d_%d_%d", session_id,
+ "Could not build ghostpad src_%u_%u_%d", session_id,
substream->priv->ssrc, substream->priv->pt);
return NULL;
}
@@ -623,7 +624,7 @@ fs_rtp_sub_stream_get_output_ghostpad (FsRtpSubStream *substream,
ghostpad))
{
g_set_error (error, FS_ERROR, FS_ERROR_CONSTRUCTION,
- "Could add build ghostpad src_%d_%d_%d to the conference",
+ "Could add build ghostpad src_%u_%u_%d to the conference",
session_id, substream->priv->ssrc, substream->priv->pt);
gst_object_unref (ghostpad);
return NULL;
--
1.5.6.5
More information about the farsight-commits
mailing list