Fix bug setting wrong temp metadata and bug in pipeline

This commit is contained in:
Jonas Kvinge
2018-09-21 00:34:02 +02:00
parent a77dde7d3b
commit 0143617056
5 changed files with 11 additions and 8 deletions

View File

@@ -373,6 +373,7 @@ bool GstEnginePipeline::InitFromString(const QString &pipeline) {
bool GstEnginePipeline::InitFromUrl(const QByteArray &url, qint64 end_nanosec) {
url_ = url;
end_offset_nanosec_ = end_nanosec;
pipeline_ = engine_->CreateElement("playbin");
@@ -579,6 +580,7 @@ void GstEnginePipeline::TagMessageReceived(GstMessage *msg) {
gst_message_parse_tag(msg, &taglist);
Engine::SimpleMetaBundle bundle;
bundle.url = QUrl(QString(url_));
bundle.title = ParseTag(taglist, GST_TAG_TITLE);
bundle.artist = ParseTag(taglist, GST_TAG_ARTIST);
bundle.comment = ParseTag(taglist, GST_TAG_COMMENT);