From: Hyunjun Ko Date: Mon, 27 Apr 2015 10:35:53 +0000 (+0900) Subject: rtsp-stream: get valid clock-rate from last-sample X-Git-Tag: 1.19.3~495^2~652 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ff22ef6d25ffb989ffa57b1f199afd85572e324;p=platform%2Fupstream%2Fgstreamer.git rtsp-stream: get valid clock-rate from last-sample clock-rate in last-sample's caps is integer, not unsigned. To get this value properly, variable needs to be type-casted to int. https://bugzilla.gnome.org/show_bug.cgi?id=747614 --- diff --git a/gst/rtsp-server/rtsp-stream.c b/gst/rtsp-server/rtsp-stream.c index 8a4abed..339971f 100644 --- a/gst/rtsp-server/rtsp-stream.c +++ b/gst/rtsp-server/rtsp-stream.c @@ -2502,7 +2502,8 @@ gst_rtsp_stream_get_rtpinfo (GstRTSPStream * stream, if (clock_rate) { GstStructure *s = gst_caps_get_structure (caps, 0); - gst_structure_get_uint (s, "clock-rate", clock_rate); + gst_structure_get_int (s, "clock-rate", (gint *) clock_rate); + if (*clock_rate == 0 && running_time) *running_time = GST_CLOCK_TIME_NONE; }