footageproperties: use Footage::DescribeStream functions
This commit is contained in:
@@ -81,7 +81,7 @@ FootagePropertiesDialog::FootagePropertiesDialog(QWidget *parent, Footage *foota
|
||||
|
||||
VideoParams vp = footage_->GetVideoParams(reference.index());
|
||||
is_enabled = vp.enabled();
|
||||
description = tr("%1x%2 %3 FPS").arg(QString::number(vp.width()), QString::number(vp.height()), QString::number(vp.frame_rate().toDouble()));
|
||||
description = Footage::DescribeVideoStream(vp);
|
||||
break;
|
||||
}
|
||||
case Track::kAudio:
|
||||
@@ -90,7 +90,7 @@ FootagePropertiesDialog::FootagePropertiesDialog(QWidget *parent, Footage *foota
|
||||
|
||||
AudioParams ap = footage_->GetAudioParams(reference.index());
|
||||
is_enabled = ap.enabled();
|
||||
description = tr("%1 Hz %2 channels").arg(QString::number(ap.sample_rate()), QString::number(ap.channel_count()));
|
||||
description = Footage::DescribeAudioStream(ap);
|
||||
break;
|
||||
}
|
||||
case Track::kSubtitle:
|
||||
|
||||
Reference in New Issue
Block a user