footageproperties: use Footage::DescribeStream functions

This commit is contained in:
itsmattkc
2023-03-20 16:51:52 -07:00
parent 537908c605
commit 8ca1672361
@@ -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: