- if (property == VideoContentProperty::VIDEO_FRAME_RATE) {
- set<float> check;
- shared_ptr<VideoContent> vc;
- for (ContentList::const_iterator i = cl.begin (); i != cl.end(); ++i) {
- shared_ptr<VideoContent> t = dynamic_pointer_cast<VideoContent> (*i);
- if (t) {
- check.insert (t->video_frame_rate ());
- vc = t;
+ if (property == VideoContentProperty::VIDEO_FRAME_RATE || property == SubtitleContentProperty::SUBTITLE_VIDEO_FRAME_RATE) {
+ set<double> check_vc;
+ shared_ptr<const VideoContent> vc;
+ int count_sc = 0;
+ shared_ptr<const SubtitleContent> sc;
+ BOOST_FOREACH (shared_ptr<const Content> i, _parent->selected ()) {
+ shared_ptr<const VideoContent> vt = dynamic_pointer_cast<const VideoContent> (i);
+ if (vt) {
+ check_vc.insert (vt->video_frame_rate ());
+ vc = vt;