mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +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);
|
gst_timecodestamper_set_drop_frame (timecodestamper);
|
||||||
|
|
||||||
tc = gst_video_time_code_new_from_date_time (timecodestamper->
|
tc = gst_video_time_code_new_from_date_time_full
|
||||||
vinfo.fps_n, timecodestamper->vinfo.fps_d, dt,
|
(timecodestamper->vinfo.fps_n, timecodestamper->vinfo.fps_d, dt,
|
||||||
timecodestamper->current_tc->config.flags, 0);
|
timecodestamper->current_tc->config.flags, 0);
|
||||||
|
|
||||||
g_date_time_unref (dt);
|
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;
|
timecodestamper->first_tc = tc;
|
||||||
notify = TRUE;
|
notify = TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue