mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
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
This commit is contained in:
parent
f777de7d7f
commit
4ff22ef6d2
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue