summaryrefslogtreecommitdiffstats
path: root/gtk/src/callbacks.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-09-01 17:56:22 +0000
committerjstebbins <[email protected]>2011-09-01 17:56:22 +0000
commita61a96e30bf2ac698dd8f59f7eaa156e6f7ab015 (patch)
treecb9c0fd75300d4e27b3943cc880fbcb9b33d618b /gtk/src/callbacks.c
parent2a86ec4e31d5eddc17902ce225caaac39f84842e (diff)
LinGui: Show video codec name in summary tab
I found myself wanting to know what the source video codec was when I discovered that several of my VC-1 trancodes were crap. So this adds the video codec name to the summary information I display on the summary tab. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4197 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/callbacks.c')
-rw-r--r--gtk/src/callbacks.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c
index 03d576603..d623286d2 100644
--- a/gtk/src/callbacks.c
+++ b/gtk/src/callbacks.c
@@ -1376,6 +1376,11 @@ show_title_info(signal_user_data_t *ud, ghb_title_info_t *tinfo)
ud->dont_clear_presets = TRUE;
ud->scale_busy = TRUE;
update_title_duration(ud);
+ widget = GHB_WIDGET (ud->builder, "source_codec");
+ if ( tinfo->video_codec_name )
+ gtk_label_set_text (GTK_LABEL(widget), tinfo->video_codec_name);
+ else
+ gtk_label_set_text (GTK_LABEL(widget), "Unknown");
widget = GHB_WIDGET (ud->builder, "source_dimensions");
text = g_strdup_printf ("%d x %d", tinfo->width, tinfo->height);
gtk_label_set_text (GTK_LABEL(widget), text);