From 8ca16723613517c41304de318169d27c571b90af Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Mon, 20 Mar 2023 16:51:52 -0700 Subject: [PATCH] footageproperties: use Footage::DescribeStream functions --- app/dialog/footageproperties/footageproperties.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/dialog/footageproperties/footageproperties.cpp b/app/dialog/footageproperties/footageproperties.cpp index 02c355561..a243671d8 100644 --- a/app/dialog/footageproperties/footageproperties.cpp +++ b/app/dialog/footageproperties/footageproperties.cpp @@ -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: