1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-24 16:51:59 +01:00

GstEnginePipeline: Rename last_known_position_ to last_known_position_ns_.

This commit is contained in:
Eduardo Sánchez Muñoz 2015-07-02 12:34:24 +02:00
parent 4af4e185da
commit 5db60bf365
2 changed files with 5 additions and 5 deletions

View File

@ -77,7 +77,7 @@ GstEnginePipeline::GstEnginePipeline(GstEngine* engine)
pipeline_is_initialised_(false),
pipeline_is_connected_(false),
pending_seek_nanosec_(-1),
last_known_position_(0),
last_known_position_ns_(0),
volume_percent_(100),
volume_modifier_(1.0),
pipeline_(nullptr),
@ -978,9 +978,9 @@ void GstEnginePipeline::TransitionToNext() {
qint64 GstEnginePipeline::position() const {
if (pipeline_is_initialised_)
gst_element_query_position(pipeline_, GST_FORMAT_TIME, &last_known_position_);
gst_element_query_position(pipeline_, GST_FORMAT_TIME, &last_known_position_ns_);
return last_known_position_;
return last_known_position_ns_;
}
qint64 GstEnginePipeline::length() const {
@ -1034,7 +1034,7 @@ bool GstEnginePipeline::Seek(qint64 nanosec) {
}
pending_seek_nanosec_ = -1;
last_known_position_ = nanosec;
last_known_position_ns_ = nanosec;
return gst_element_seek_simple(pipeline_, GST_FORMAT_TIME,
GST_SEEK_FLAG_FLUSH, nanosec);
}

View File

@ -263,7 +263,7 @@ signals:
// correct call to gst_element_query_position() or after a seek), we store
// it here so that we can use it when using gst_element_query_position() is
// not possible.
mutable gint64 last_known_position_;
mutable gint64 last_known_position_ns_;
int volume_percent_;
qreal volume_modifier_;