Implement source timestamp synchronization

This commit is contained in:
antimof
2020-05-02 17:06:05 +03:00
committed by GitHub
parent a866988676
commit 0b97ab0757

View File

@@ -65,7 +65,7 @@ void video_renderer_render_buffer(video_renderer_t *renderer, raop_ntp_t *ntp, u
buffer = gst_buffer_new_and_alloc(data_len);
assert(buffer != NULL);
GST_BUFFER_DTS(buffer) = (GstClockTime)pts;
gst_buffer_fill(buffer, 0, data, data_len);
gst_app_src_push_buffer (GST_APP_SRC(renderer->appsrc), buffer);
}