mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 05:59:10 +00:00
ffdec: rename time variable
Rename the time variable to avoid confusion with the time function. Add some debug to the QoS update function.
This commit is contained in:
parent
7d531c06bb
commit
c330cdcc5d
1 changed files with 7 additions and 4 deletions
|
@ -506,11 +506,14 @@ gst_ffmpegdec_query (GstPad * pad, GstQuery * query)
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_ffmpegdec_update_qos (GstFFMpegDec * ffmpegdec, gdouble proportion,
|
gst_ffmpegdec_update_qos (GstFFMpegDec * ffmpegdec, gdouble proportion,
|
||||||
GstClockTime time)
|
GstClockTime timestamp)
|
||||||
{
|
{
|
||||||
|
GST_LOG_OBJECT (ffmpegdec, "update QOS: %f, %" GST_TIME_FORMAT,
|
||||||
|
proportion, GST_TIME_ARGS (timestamp));
|
||||||
|
|
||||||
GST_OBJECT_LOCK (ffmpegdec);
|
GST_OBJECT_LOCK (ffmpegdec);
|
||||||
ffmpegdec->proportion = proportion;
|
ffmpegdec->proportion = proportion;
|
||||||
ffmpegdec->earliest_time = time;
|
ffmpegdec->earliest_time = timestamp;
|
||||||
GST_OBJECT_UNLOCK (ffmpegdec);
|
GST_OBJECT_UNLOCK (ffmpegdec);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -522,11 +525,11 @@ gst_ffmpegdec_reset_qos (GstFFMpegDec * ffmpegdec)
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_ffmpegdec_read_qos (GstFFMpegDec * ffmpegdec, gdouble * proportion,
|
gst_ffmpegdec_read_qos (GstFFMpegDec * ffmpegdec, gdouble * proportion,
|
||||||
GstClockTime * time)
|
GstClockTime * timestamp)
|
||||||
{
|
{
|
||||||
GST_OBJECT_LOCK (ffmpegdec);
|
GST_OBJECT_LOCK (ffmpegdec);
|
||||||
*proportion = ffmpegdec->proportion;
|
*proportion = ffmpegdec->proportion;
|
||||||
*time = ffmpegdec->earliest_time;
|
*timestamp = ffmpegdec->earliest_time;
|
||||||
GST_OBJECT_UNLOCK (ffmpegdec);
|
GST_OBJECT_UNLOCK (ffmpegdec);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue