65 const strm_string_t *value;
68 m_duration = QByteArray(strm_string_getx(value,
"0")).toLongLong();
71 m_mediaType = QByteArray(strm_string_getx(value,
"-1")).toInt();
73 value = strm_dict_find_rstr(dict,
titleKey);
74 m_title = QString::fromLatin1(QByteArray(strm_string_getx(value,
nullptr)));
77 m_seekable = (strcmp(strm_string_getx(value,
"1"),
"0") != 0);
79 value = strm_dict_find_rstr(dict,
artistKey);
80 m_artist = QString::fromLatin1(QByteArray(strm_string_getx(value,
nullptr)));
83 m_comment = QString::fromLatin1(QByteArray(strm_string_getx(value,
nullptr)));
85 value = strm_dict_find_rstr(dict,
genreKey);
86 m_genre = QString::fromLatin1(QByteArray(strm_string_getx(value,
nullptr)));
88 value = strm_dict_find_rstr(dict,
yearKey);
89 m_year = QByteArray(strm_string_getx(value,
"0")).toInt();
91 value = strm_dict_find_rstr(dict,
albumKey);
92 m_album = QString::fromLatin1(QByteArray(strm_string_getx(value,
nullptr)));
94 value = strm_dict_find_rstr(dict,
trackKey);
95 m_track = QByteArray(strm_string_getx(value,
"0")).toInt();
97 strm_dict_t *at = mmr_metadata_split(dict,
"audio", 0);
100 m_sampleRate = QByteArray(strm_string_getx(value,
"0")).toInt();
103 m_audioBitRate = QByteArray(strm_string_getx(value,
"0")).toInt();
105 strm_dict_destroy(at);
107 value = strm_dict_find_rstr(dict,
sampleKey);
108 m_sampleRate = QByteArray(strm_string_getx(value,
"0")).toInt();
110 value = strm_dict_find_rstr(dict,
bitRateKey);
111 m_audioBitRate = QByteArray(strm_string_getx(value,
"0")).toInt();
114 strm_dict_t *vt = mmr_metadata_split(dict,
"video", 0);
117 m_width = QByteArray(strm_string_getx(value,
"0")).toInt();
120 m_height = QByteArray(strm_string_getx(value,
"0")).toInt();
123 m_pixelWidth = QByteArray(strm_string_getx(value,
"1")).toFloat();
126 m_pixelHeight = QByteArray(strm_string_getx(value,
"1")).toFloat();
128 strm_dict_destroy(vt);
130 value = strm_dict_find_rstr(dict,
widthKey);
131 m_width = QByteArray(strm_string_getx(value,
"0")).toInt();
133 value = strm_dict_find_rstr(dict,
heightKey);
134 m_height = QByteArray(strm_string_getx(value,
"0")).toInt();
137 m_pixelWidth = QByteArray(strm_string_getx(value,
"1")).toFloat();
140 m_pixelHeight = QByteArray(strm_string_getx(value,
"1")).toFloat();