mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 18:35:35 +00:00
info: add human readable code info
This commit is contained in:
parent
8e006976a8
commit
11730cfbe2
1 changed files with 20 additions and 2 deletions
|
@ -191,7 +191,7 @@ public class MediaInfo.Info : VBox
|
|||
sinfo = l.nth_data (i);
|
||||
|
||||
row = 0;
|
||||
table = new Table (2, 6, false);
|
||||
table = new Table (2, 7, false);
|
||||
|
||||
label = new Label(sinfo.get_caps ().to_string ());
|
||||
label.set_ellipsize (Pango.EllipsizeMode.END);
|
||||
|
@ -199,6 +199,15 @@ public class MediaInfo.Info : VBox
|
|||
table.attach (label, 0, 2, row, row+1, fill_exp, 0, 0, 1);
|
||||
row++;
|
||||
|
||||
label = new Label ("Codec:");
|
||||
label.set_alignment (1.0f, 0.5f);
|
||||
table.attach (label, 0, 1, row, row+1, fill, 0, 0, 0);
|
||||
str = pb_utils_get_codec_description( sinfo.get_caps ());
|
||||
label = new Label (str);
|
||||
label.set_alignment (0.0f, 0.5f);
|
||||
table.attach (label, 1, 2, row, row+1, fill_exp, 0, 3, 1);
|
||||
row++;
|
||||
|
||||
label = new Label ("Bitrate:");
|
||||
label.set_alignment (1.0f, 0.5f);
|
||||
table.attach (label, 0, 1, row, row+1, fill, 0, 0, 0);
|
||||
|
@ -257,7 +266,7 @@ public class MediaInfo.Info : VBox
|
|||
sinfo = l.nth_data (i);
|
||||
|
||||
row = 0;
|
||||
table = new Table (2, 5, false);
|
||||
table = new Table (2, 6, false);
|
||||
|
||||
label = new Label(sinfo.get_caps ().to_string ());
|
||||
label.set_ellipsize (Pango.EllipsizeMode.END);
|
||||
|
@ -265,6 +274,15 @@ public class MediaInfo.Info : VBox
|
|||
table.attach (label, 0, 2, row, row+1, fill_exp, 0, 0, 1);
|
||||
row++;
|
||||
|
||||
label = new Label ("Codec:");
|
||||
label.set_alignment (1.0f, 0.5f);
|
||||
table.attach (label, 0, 1, row, row+1, fill, 0, 0, 0);
|
||||
str = pb_utils_get_codec_description( sinfo.get_caps ());
|
||||
label = new Label (str);
|
||||
label.set_alignment (0.0f, 0.5f);
|
||||
table.attach (label, 1, 2, row, row+1, fill_exp, 0, 3, 1);
|
||||
row++;
|
||||
|
||||
label = new Label ("Bitrate:");
|
||||
label.set_alignment (1.0f, 0.5f);
|
||||
table.attach (label, 0, 1, row, row+1, fill, 0, 0, 0);
|
||||
|
|
Loading…
Reference in a new issue