diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2010-10-06 12:26:09 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2010-10-06 12:26:09 +0200 |
commit | b0e65825ab495cb014da26560d0b8cec7728bdc6 (patch) | |
tree | 8d7603c68da340ca1cdc740d4361d72ec74fff93 | |
parent | 8c994588b838d7ebbb174102e5283d9fe5774798 (diff) |
ffdec: rename time variable
Rename the time variable to avoid confusion with the time function.
Add some debug to the QoS update function.
-rw-r--r-- | ext/ffmpeg/gstffmpegdec.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ext/ffmpeg/gstffmpegdec.c b/ext/ffmpeg/gstffmpegdec.c index 55db4da..44ef46f 100644 --- a/ext/ffmpeg/gstffmpegdec.c +++ b/ext/ffmpeg/gstffmpegdec.c @@ -506,11 +506,14 @@ gst_ffmpegdec_query (GstPad * pad, GstQuery * query) static void 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); ffmpegdec->proportion = proportion; - ffmpegdec->earliest_time = time; + ffmpegdec->earliest_time = timestamp; GST_OBJECT_UNLOCK (ffmpegdec); } @@ -522,11 +525,11 @@ gst_ffmpegdec_reset_qos (GstFFMpegDec * ffmpegdec) static void gst_ffmpegdec_read_qos (GstFFMpegDec * ffmpegdec, gdouble * proportion, - GstClockTime * time) + GstClockTime * timestamp) { GST_OBJECT_LOCK (ffmpegdec); *proportion = ffmpegdec->proportion; - *time = ffmpegdec->earliest_time; + *timestamp = ffmpegdec->earliest_time; GST_OBJECT_UNLOCK (ffmpegdec); } |