#include "lib/content.h"
#include "lib/video_content.h"
#include "lib/audio_content.h"
+#include "lib/single_stream_audio_content.h"
#include <boost/algorithm/string.hpp>
using std::string;
if (video) {
add_property (
_("Video length"),
- std_to_wx (raw_convert<string> (video->video_length ().frames (video->video_frame_rate ()))) + " " + _("video frames")
+ std_to_wx (raw_convert<string> (video->video_length ())) + " " + _("video frames")
);
add_property (
_("Video size"),
);
}
- shared_ptr<AudioContent> audio = dynamic_pointer_cast<AudioContent> (content);
- if (audio) {
+ /* XXX: this could be better wrt audio streams */
+
+ shared_ptr<SingleStreamAudioContent> single = dynamic_pointer_cast<SingleStreamAudioContent> (content);
+ if (single) {
add_property (
_("Audio channels"),
- std_to_wx (raw_convert<string> (audio->audio_channels ()))
- );
- add_property (
- _("Audio length"),
- std_to_wx (raw_convert<string> (audio->audio_length().frames (audio->audio_frame_rate ()))) + " " + _("audio frames")
+ std_to_wx (raw_convert<string> (single->audio_stream()->channels ()))
);
}
-
+
layout ();
}