From 627f99396ae011179683493a25a434afa2e36d1c Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 27 Jun 2007 11:36:24 +0000 Subject: [PATCH] gst/rtsp/gstrtspsrc.c: Cast stack args to the proper types. Fixes #451249. Original commit message from CVS: * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_configure_caps): Cast stack args to the proper types. Fixes #451249. --- ChangeLog | 5 +++++ gst/rtsp/gstrtspsrc.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4fee3c160e..2fa7dcafa2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-06-27 Wim Taymans + + * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_configure_caps): + Cast stack args to the proper types. Fixes #451249. + 2007-06-27 Wim Taymans * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_create_stream), diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 54bd15b885..0121d14408 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -1989,11 +1989,11 @@ gst_rtspsrc_configure_caps (GstRTSPSrc * src) caps = gst_caps_make_writable (caps); /* update caps */ if (stream->timebase != -1) - gst_caps_set_simple (caps, "clock-base", G_TYPE_UINT, stream->timebase, - NULL); + gst_caps_set_simple (caps, "clock-base", G_TYPE_UINT, + (guint) stream->timebase, NULL); if (stream->seqbase != -1) - gst_caps_set_simple (caps, "seqnum-base", G_TYPE_UINT, stream->seqbase, - NULL); + gst_caps_set_simple (caps, "seqnum-base", G_TYPE_UINT, + (guint) stream->seqbase, NULL); gst_caps_set_simple (caps, "npt-start", G_TYPE_UINT64, start, NULL); if (stop != -1) gst_caps_set_simple (caps, "npt-stop", G_TYPE_UINT64, stop, NULL);