- if (m_element.attribute("duration") == QString::null) m_element.setAttribute("duration", attributes["duration"].toInt());
- m_element.setAttribute("resource", attributes["filename"]);
- m_element.setAttribute("type", (int) m_clipType);
-
- if (KdenliveSettings::audiothumbnails()) m_clip->slotRequestAudioThumbs();
- /*
- if (attributes.contains("height")) {
- m_height = attributes["height"].toInt();
- } else {
- m_height = 0;
- }
- if (attributes.contains("width")) {
- m_width = attributes["width"].toInt();
- } else {
- m_width = 0;
- }
- //decoder name
- if (attributes.contains("name")) {
- m_decompressor = attributes["name"];
- } else {
- m_decompressor = "n/a";
- }
- //video type ntsc/pal
- if (attributes.contains("system")) {
- m_system = attributes["system"];
- } else {
- m_system = "n/a";
- }
- if (attributes.contains("fps")) {
- m_framesPerSecond = attributes["fps"].toInt();
- } else {
- // No frame rate known.
- m_framesPerSecond = 0;
- }
- //audio attributes -reh
- if (attributes.contains("channels")) {
- m_channels = attributes["channels"].toInt();
- } else {
- m_channels = 0;
- }
- if (attributes.contains("format")) {
- m_format = attributes["format"];
- } else {
- m_format = "n/a";
- }
- if (attributes.contains("frequency")) {
- m_frequency = attributes["frequency"].toInt();
- } else {
- m_frequency = 0;
- }
- if (attributes.contains("videocodec")) {
- m_videoCodec = attributes["videocodec"];
- }
- if (attributes.contains("audiocodec")) {
- m_audioCodec = attributes["audiocodec"];
- }
-
- m_metadata = metadata;
-
- if (m_metadata.contains("description")) {
- setDescription (m_metadata["description"]);
- }
- else if (m_metadata.contains("comment")) {
- setDescription (m_metadata["comment"]);
- }
- */