rem: string = g_strdup_printf ("%d x %d", xine_get_stream_info (gtx->priv->stream, XINE_STREAM_INFO_VIDEO_WIDTH), xine_get_stream_info (gtx->priv->stream, XINE_STREAM_INFO_VIDEO_HEIGHT)); gtk_xine_properties_set_label (gtx, "dimensions", string);
add: gtk_xine_get_metadata (GTK_XINE (gtx), GTX_INFO_DIMENSION_X, &value); x = g_value_get_int (&value); g_value_unset (&value); gtk_xine_get_metadata (GTK_XINE (gtx), GTX_INFO_DIMENSION_Y, &value); y = g_value_get_int (&value); g_value_unset (&value); string = g_strdup_printf ("%d x %d", x, y); gtk_xine_properties_set_label (props, "dimensions", string);
context: gtk_xine_properties_set_from_current (GtkXineProperties *props, GtkXine *gtx){	GtkWidget *item;	const char *text;	char *string;	int fps;#if 0	/* General */	text = xine_get_meta_info (gtx->priv->stream, XINE_META_INFO_TITLE);	gtk_xine_properties_set_label (gtx, "title",			text ? text : _("Unknown"));	text = xine_get_meta_info (gtx->priv->stream, XINE_META_INFO_ARTIST);	gtk_xine_properties_set_label (gtx, "artist",			text ? text : _("Unknown"));	text = xine_get_meta_info (gtx->priv->stream, XINE_META_INFO_YEAR);	gtk_xine_properties_set_label (gtx, "year",			text ? text : _("N/A"));	string = time_to_string (gtk_xine_get_stream_length (gtx) / 1000);	gtk_xine_properties_set_label (gtx, "duration", string);	g_free (string);	/* Video */	item = glade_xml_get_widget (gtx->priv->xml, "video");	if (xine_get_stream_info (gtx->priv->stream,				XINE_STREAM_INFO_HAS_VIDEO) == FALSE)		gtk_widget_set_sensitive (item, FALSE);	else		gtk_widget_set_sensitive (item, TRUE);	string = g_strdup_printf ("%d x %d",			xine_get_stream_info (gtx->priv->stream,				XINE_STREAM_INFO_VIDEO_WIDTH),			xine_get_stream_info (gtx->priv->stream,				XINE_STREAM_INFO_VIDEO_HEIGHT));	gtk_xine_properties_set_label (gtx, "dimensions", string);	g_free (string);	text = xine_get_meta_info (gtx->priv->stream,			XINE_META_INFO_VIDEOCODEC);	gtk_xine_properties_set_label (gtx, "vcodec",			text ? text : _("N/A"));	if (xine_get_stream_info (gtx->priv->stream,				XINE_STREAM_INFO_FRAME_DURATION) != 0)	{		fps = 90000 / xine_get_stream_info (gtx->priv->stream,				XINE_STREAM_INFO_FRAME_DURATION);	} else {		fps = 0;	}	string = g_strdup_printf (_("%d frames per second"), fps);	gtk_xine_properties_set_label (gtx, "framerate", string);	g_free (string);	/* Audio */	item = glade_xml_get_widget (gtx->priv->xml, "audio");	if (xine_get_stream_info (gtx->priv->stream,				XINE_STREAM_INFO_HAS_AUDIO) == FALSE)		gtk_widget_set_sensitive (item, FALSE);	else		gtk_widget_set_sensitive (item, TRUE);	string = g_strdup_printf (_("%d kbps"),			xine_get_stream_info (gtx->priv->stream,				XINE_STREAM_INFO_AUDIO_BITRATE) / 1000);	gtk_xine_properties_set_label (gtx, "bitrate", string);	g_free (string);	text = xine_get_meta_info (gtx->priv->stream,			XINE_META_INFO_AUDIOCODEC);	gtk_xine_properties_set_label (gtx, "acodec",			text ? text : _("N/A"));#endif}