omxvideodec: use the decoder API to set latency

https://bugzilla.gnome.org/show_bug.cgi?id=785125
This commit is contained in:
Guillaume Desmottes 2017-08-10 12:16:53 -04:00 committed by Nicolas Dufresne
parent f2b0b66e39
commit 6d2082003a

View file

@ -2012,7 +2012,7 @@ gst_omx_video_dec_set_latency (GstOMXVideoDec * self)
/* Convert to ns */
latency = param.nLatency * GST_MSECOND;
gst_video_encoder_set_latency (GST_VIDEO_ENCODER (self), latency, latency);
gst_video_decoder_set_latency (GST_VIDEO_DECODER (self), latency, latency);
}
#endif