info: add human readable code info

This commit is contained in:
Stefan Sauer 2010-10-28 16:45:55 +03:00
parent 8e006976a8
commit 11730cfbe2

View file

@ -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);