mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
rtp: small improvements
This commit is contained in:
parent
af055d9574
commit
72402cc649
1 changed files with 3 additions and 4 deletions
|
@ -783,10 +783,12 @@ get_current_times (GstRtpSession * rtpsession, GstClockTime * running_time,
|
||||||
gst_object_ref (clock);
|
gst_object_ref (clock);
|
||||||
GST_OBJECT_UNLOCK (rtpsession);
|
GST_OBJECT_UNLOCK (rtpsession);
|
||||||
|
|
||||||
|
/* get current clock time and convert to running time */
|
||||||
clock_time = gst_clock_get_time (clock);
|
clock_time = gst_clock_get_time (clock);
|
||||||
|
rt = clock_time - base_time;
|
||||||
|
|
||||||
if (rtpsession->priv->use_pipeline_clock) {
|
if (rtpsession->priv->use_pipeline_clock) {
|
||||||
ntpns = clock_time - base_time;
|
ntpns = rt;
|
||||||
} else {
|
} else {
|
||||||
GTimeVal current;
|
GTimeVal current;
|
||||||
|
|
||||||
|
@ -798,9 +800,6 @@ get_current_times (GstRtpSession * rtpsession, GstClockTime * running_time,
|
||||||
/* add constant to convert from 1970 based time to 1900 based time */
|
/* add constant to convert from 1970 based time to 1900 based time */
|
||||||
ntpns += (2208988800LL * GST_SECOND);
|
ntpns += (2208988800LL * GST_SECOND);
|
||||||
|
|
||||||
/* get current clock time and convert to running time */
|
|
||||||
rt = clock_time - base_time;
|
|
||||||
|
|
||||||
gst_object_unref (clock);
|
gst_object_unref (clock);
|
||||||
} else {
|
} else {
|
||||||
GST_OBJECT_UNLOCK (rtpsession);
|
GST_OBJECT_UNLOCK (rtpsession);
|
||||||
|
|
Loading…
Reference in a new issue