mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
timecodestamper: Don't use deprecated API
This commit is contained in:
parent
b4bdcf15b7
commit
3891bf2695
1 changed files with 9 additions and 2 deletions
|
@ -352,12 +352,19 @@ gst_timecodestamper_sink_event (GstBaseTransform * trans, GstEvent * event)
|
|||
|
||||
gst_timecodestamper_set_drop_frame (timecodestamper);
|
||||
|
||||
tc = gst_video_time_code_new_from_date_time (timecodestamper->
|
||||
vinfo.fps_n, timecodestamper->vinfo.fps_d, dt,
|
||||
tc = gst_video_time_code_new_from_date_time_full
|
||||
(timecodestamper->vinfo.fps_n, timecodestamper->vinfo.fps_d, dt,
|
||||
timecodestamper->current_tc->config.flags, 0);
|
||||
|
||||
g_date_time_unref (dt);
|
||||
|
||||
if (!tc) {
|
||||
GST_ERROR_OBJECT (timecodestamper,
|
||||
"Can't convert current time to a timecode");
|
||||
GST_OBJECT_UNLOCK (timecodestamper);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
timecodestamper->first_tc = tc;
|
||||
notify = TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue